write a program to print a table that numbers given by user
Answers
Answered by
7
Answer:
/**
* C program to print multiplication table of a number
*/
#include <stdio.h>
int main()
{
int i, num;
/* Input a number to print table */
printf("Enter number to print table: ");
scanf("%d", &num);
for(i=1; i<=10; i++)
{
printf("%d * %d = %d\n", num, i, (num*i));
}
return 0;
}
Similar questions