Skip to main content
C program to print multiplication table
#include<stdio.h>
int main()
{
int n;
printf("enter the number to print its multiplication table\n");
scanf("%d",&n);
int i;
printf("Multiplication table of %d is:\n",n);
for(i=1;i<11;i++)
{
printf("%d * %d = %d\n",n,i,n*i);
}
return 0;
}
output:
Comments
Post a Comment