C LANGUAGE PROGRAMS
Program to Print a Table of any Number
#include <stdio.h>
main()
{
int n, mul, i;
printf("\nEnter any no.: ");
scanf("%d", &n);
for(i=1; i<=10; i++)
{
mul = n*i;
printf("\n\n%d\tx\t%d\t=\t%d", n, i, mul);
}
getch();
}
Newer Post
Older Post
Home