Lecture 109
// Loop do while
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int i;
cout<<"0 to 9 number: ";
i=0;
do{
cout<<i;
i+=1;
}while(i<10);
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10