C Program to Generate Multiplication Table | Print Table of a Number - CodeTextPro | Web Tutorial | Technology

CodeTextPro.com Provides - Web design, Technology gyan, Digital marketing, Online earnings, Seo, Adsense, Technology news, Motivation and inspiration, Latest Technology Affairs, Gadgets, Blogging

Sunday, January 20, 2019

C Program to Generate Multiplication Table | Print Table of a Number

In this Program, you will show how to generate the multiplication table of a number (input entered by the user) using for loop.


Multiplication Table
Multiplication Table

Example1: Multiplication Table Upto 10

#include <stdio.h>
int main()
{
    int n, i;

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

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

    return 0;
}


Output

Enter an Integer Number: 9
9 * 1 = 9
9 * 2 = 18
9 * 3 = 27
9 * 4 = 36
9 * 5 = 45
9 * 6 = 54
9 * 7 = 63
9 * 8 = 72
9 * 9 = 81
9 * 10 = 90

1 comment: