Lecture 90
// Loop While
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int n;
cout<<"Two table\n";
n=1;
while(n<11)
{
cout<<"\n2 X
"<<n<<" = "<<2*n;
n++;
}
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10