C Program To Print Table Of Given Number With Table Format
Example
#include<stdio.h> void main() { int i, number; printf("n Enter any number: "); scanf("%d", &number); printf("n Table of %d is: n", number); for (i = 1; i <= 10; ++i){ printf("n %d * %d : %d", number, i, number * i); } }
Output:
Enter any number: 10 Table of 10 is: 10 * 1 : 10 10 * 2 : 20 10 * 3 : 30 10 * 4 : 40 10 * 5 : 50 10 * 6 : 60 10 * 7 : 70 10 * 8 : 80 10 * 9 : 90 10 * 10 : 100