source file name: Tablesfor.C

 void main()

{

int tn;

int n=1;

clrscr();

printf("\n enter any table nos 1 to 20: \n");

for(tn=1;tn<=20;tn++)

{

for(n=1;n<=10;n++)

{

printf(" %d ",tn*n);

}

printf("\n");

}

getch();

}

output: