C program to print table of a given number

Code:

\\C program to find table of a given number.
#include<stdio.h>
void main()
{
int num,i;
printf("Enter the number you want to print table of :\t");
scanf("%d",&num);
for(i=1;i<=10;i++)
{
printf("\n\t%d * %d=%d",num,i,num*i);
}
}
view raw Table.c hosted with ❤ by GitHub
Output:
Enter the number you want to print the table of  5

5
10
15
20
25
30
35
40
45
50

Comments

Popular posts from this blog

C++ programming toll plaza simulation program