DevelopersSociety
SQL
Contact
HTML
C++
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment