C Program to print table of any number


In this program, You will learn how to print table of any number in C.


14 Table is: 16 32 48 64 80 96 112 128 144 160


Example: How to print table of any number in C

Run it Now
#include<stdio.h>

int main() {

   int n, r, i;

   printf("Enter a Number :");
   scanf("%d", &n);

   for (i = 1; i <= 10; i++) {
       r = i * n;
       printf("\n%d", r);
   }

   return 0;
}

Output:

Enter a Number :16
16
32
48
64
80
96
112
128
144
160