Multiplication Table Program in C using For Loop

In this C example, you will learn to find the Multiplication Table Program in C using For Loop.


Multiplication Table Program in C


SOURCE CODE 


#include<stdio.h>
int main(){
int i,n;
printf("Enter Number to print Multiplication Table: \n");
scanf("%d",&n);
for(i=0;i<=10;i++)
{
printf("%d * %d = %d \n",n,i,n*i);
}
return 0;
}

Output



Enter Number to print Multiplication Table:
5
5 * 0 = 0
5 * 1 = 5
5 * 2 = 10
5 * 3 = 15
5 * 4 = 20
5 * 5 = 25
5 * 6 = 30
5 * 7 = 35
5 * 8 = 40
5 * 9 = 45
5 * 10 = 50

--------------------------------

In the above article, we discuss the multiplication Table Program in C using For Loop and don't forget to share your experience in the comment box.

Happy Coding 😊

Share this

0 Comment to "Multiplication Table Program in C using For Loop"

Post a Comment