C Program to Print Multiplication Table

C Program to Print Multiplication Table.in this article we make C Program to Print multiplication table using For Loop, and While Loop Take input from user.

C Program to Print Multiplication Table

#include <stdio.h>
int main()
{
    int i, num;
    printf("Enter number to print table: ");
    scanf("%d", &num);

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

Output of Program

Enter number to print table: 24
24 * 1 = 24
24 * 2 = 48
24 * 3 = 72
24 * 4 = 96
24 * 5 = 120
24 * 6 = 144
24 * 7 = 168
24 * 8 = 192
24 * 9 = 216
24 * 10 = 240