C program to print the table of any number entered by the user.
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf(“enter the value of a”);
scanf(“%d”,&a);
for (b=1;b<=10;b=b+1)
{
c=b*a;
printf(“%d\n”,c);
}
getch();
}
Output: