This is very simple and easy program in C programming language to print the table of any entered number. If you enter the 2, then it will print the table of 2. This program will Print Table of Number in C programming language.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
#include<stdio.h> #include<conio.h> void main() { clrscr(); int num, i, tab; printf("Enter a number : "); scanf("%d",&num); printf("Table of %d is \n\n",num); for(i=1; i<=10; i++) { tab=num*i; printf("%d * %2d = %2d\n",num, i, tab); } getch(); } |
Output is:
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article Tags: c program to print multiplication table, Print Table of Number in C, program for multiplication table, program to print multiplication table in c, table in c language, table in c programming, table program in c language