Tuesday 19 January 2016

// // Leave a Comment

DO-WHILE LOOP

C++ Program Print first 10 Integer Using Do-while Loop

#include<iostream>
using namespace std;
int main()
{
int number = 1;
do
{

cout << number << endl;//print number
number++;
}while (number <= 10);//termination value

system("pause");
}








0 comments:

Post a Comment