#include<stdio.h>
#include<conio.h>
main()
{
int n,i,j;
clrscr();
printf("enter the value:");
scanf("%d",&n);
printf("\t");
for(i=1;i<=n;i++)
printf("%5d",i);
printf("\n\n");
for(i=1;i<=20;i++)
{ printf("%d\t",i);
for(j=1;j<=n;j++)
{
printf("%5d",i*j);
}
printf("\n");
}
getch();
}�
No comments:
Post a Comment