C program to generate Multiplication Table
#include<stdio.h>
int main( )
{
int n, i;
printf("Enter the number");
scanf("%d",&n);
printf("%d Multiplication Table:\n",n);
for(i=1;i<=10; i++)
{
printf("%d * %d = %d",n,i,(n*i));
printf("\n");
}
return 0;
}
0 Comments