## C Program To Print Multiplication Table From 1 To N

Learn How To Find Multiplication Table of a Number using While Loop and For Loop in C Programming Language.

**Must Read: C Program To Find Leap Year**

#### C Program To Print Multiplication Table using For Loop

#include<stdio.h> int main() { int num, count, limit; printf("\nEnter a Number:\t"); scanf("%d", &num); printf("\nEnter the Limit:\t"); scanf("%d", &limit); for(count = 1; count <= limit; count++) { printf("%d X %d = %d\n", num, count, (num*count)); } return 0; }

#### C Program To Display Multiplication Table using While Loop

#include<stdio.h> int main() { int num, count = 1, limit; printf("\nEnter a Number:\t"); scanf("%d", &num); printf("\nEnter the Limit:\t"); scanf("%d", &limit); while(count <= limit) { printf("%d X %d = %d\n", num, count, (num*count)); count++; } return 0; }

#### Display Multiplication Table using Functions in C Programming

#include<stdio.h> void multiplication_table(int num, int limit) { int count; for(count = 1; count <= limit; count++) { printf("%d X %d = %d\n", num, count, (num*count)); } } int main() { int num, limit; printf("\nEnter a Number:\t"); scanf("%d", &num); printf("\nEnter the Limit:\t"); scanf("%d", &limit); multiplication_table(num, limit); return 0; }

**Must Read: C Program To Calculate Age of a Person**

#### Output

If you have any compilation error or doubts in this C Program To Print Multiplication Table of a given Number from 1 To 10, let us know about it in the Comment Section below.

Which number can be print the multiplication table in this C Program? Will this program work for 1 Million Loops?

Well, I have not tried it with a Million Digit. You may need to change the datatype if you want to calculate that big number.

it worked with a million figure

Can we print the table of any num using function Return Type????