42. Define 'Nested Loop'. write a program to calculate and display the multipliction table using nested loop.[2068]
#include<stdio.h>
#include<conio.h>
void main()
{
int i,j;
clrscr();
for(i=1;i<20;i++)
{
for(j=1;j<=10;j++)
printf("\n %d x %3d=%4d",i,j,i*j);
}
getch();
}
No comments:
Post a Comment