/*example of nested loop*/
#include <stdio.h>
#include<stdlib.h>
int main()
{
int i,j;
for (i=1;i<=5;i++)
{
printf("\n");
for (j=1;j<=5;j++)
printf("%d \t",i*j);
}
system("pause");
return 0;
}
#include <stdio.h>
#include<stdlib.h>
int main()
{
int i,j;
for (i=1;i<=5;i++)
{
printf("\n");
for (j=1;j<=5;j++)
printf("%d \t",i*j);
}
system("pause");
return 0;
}
No comments:
Post a Comment