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