DevelopersSociety

Tuesday, December 9, 2014

C++ Tutorial- Program- 9- do while loop


Code:

#include <iostream>
using namespace std;
main()
{
int count=0, times;
    cout<<"How many times loop:";
cin >> times;
do
{
count++;
cout <<count<<endl;
}
while (count<times);
}

Output:


No comments:

Post a Comment