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