In this easy coded program, you will learn how to print table of n.
You will have to take input from the user for this program of any number of which the table needs to be calculated.
---------------------------------------------------------------------------
Output
Hope you found this 'C Program to Print Table of 'n'' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
---------------------------------------------------------------------------
Program to Print Table of 'n'
/*Table of n*/
|
|
#include<stdio.h>
|
|
void main()
|
{
|
int
num, i, a;
|
|
printf("Enter Number: ");
|
scanf("%d", &num);
|
|
for(i=1;
i<=10;
i++)
|
{
|
a=num*i;
|
printf("\n%d X %d = %d", num, i, a);
|
}
|
}
|
Output
Enter Number: 7
7 X 1 = 7
7 X 2 = 14
7 X 3 = 21
7 X 4 = 28
7 X 5 = 35
7 X 6 = 42
7 X 7 = 49
7 X 8 = 56
7 X 9 = 63
7 X 10 = 70
---------------------------------------------------------------------------Hope you found this 'C Program to Print Table of 'n'' easy, simple and helpful!
Try to solve more queries by yourself by referring more examples from BEGINC. Here you will get the most easiest code to each and every query. Keep practicing. More programs are coming.
Comments
Post a Comment
Please do not comment any spam links in the comment box.