C Program to Generate Multiplication Table With For Loop
C

C Program to Generate Multiplication Table With For Loop


In this Blog, you will learn to Generate a Multiplication Table of the Number Entered by the User.

To Understand this Example, you should have Knowledge of the following C Programming topics:

How to Get Started Learning C Programming for Beginners

C Program to Generate Multiplication Table With For Loop Code Here.

#include <stdio.h>
#include <conio.h>

void main()
{
int a,i,cnt=1;

printf("enter your number :-");
scanf("%d",&a);
printf("\n\n");

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

Output:-


Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *