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