Program to print table of a given number
#include<stdio.h>#include<conio.h>
void main()
{
int n,a,t;
clrscr();
printf("enter any number to print table\n");
scanf("%d",&n);
for(a=1;a<=10;a++)
{
t=n*a;
printf("%d*%d=%d\n",n,a,t);
}
getch();
}
OUTPUT
enter any number to print table
12
12*1=12
12*2=24
12*3=36
12*4=48
12*5=60
12*6=72
12*7=84
12*8=96
12*9=108
12*10=120
You can also visit:-