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…

1 min read

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:-

Khushal

Welcome to my corner of the web! I'm Khushal Tank, a passionate web developer and the author behind MyProgramming.com. With a robust background in PHP, Webflow, HTML, CSS, and JavaScript, I've dedicated myself to crafting seamless, interactive, and visually appealing websites.

Leave a Reply

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