Write a programe to print the table of a number.

 

#include<stdio.h>

#include<conio.h>

int main()

{

int t, a, n;

printf(“Enter the table no: “);

scanf(“%d”, &a);

for(n=1;n<=10;n++)

{

t=a*n;

printf(“%d * %d =%d\n”, a, n, t);

}

getch();

return 0;

}