Sunday, 21 January 2018

Program for Multiplication table


Program for Multiplication table
#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();
}�

0 comments:

Post a Comment