Lecture 97
//Nested while loop
#include <iostream>
#include <conio.h>
using namespace std;
main ()
{
int row,col;
row=1;
while(row<13)//outer loop
{
col=1;
while(col<13){//inner loop
cout<<col*row<<"\xb3";
col++;}
cout<<endl;
row++;
}
getch();
return 0;
}
Code view in dev compiler:
Compile the program Ctrl+F9
Run program Ctrl+F10