C PROGRAMMING

write a c program to generate mulitplication table of a given number

#include <stdio.h>
#include <conio.h>
int main()
{
int n, i,m,table;
printf("Enter a number of which you want to print multiplication table nn");
scanf("%d",&n);
printf("Enter a number upto you want to print multiplication table nn");
scanf("%d",&m);
printf("nn");
for (i=1;i<=m;i++)
{
table=n*i;
printf("%d X %d = %d n",n,i,table);
}
getch();
}
Show More

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button