C program to print Multiplication Table
Hello, In this blog we see the c program code to print multiplication table. In this program user give the input and depends on that integer number the multiplication table will displayed.
Code:
#include<stdio.h>
#include<conio.h>
void main()
{
int s,i,a;
clrscr();
printf("Enter the number to print the multiplication table: ");
scanf("%d",&s);
printf("\n");
for(i=1; i <= 10; i++)
{
printf("%d",s);
printf(" * ");
printf("%d",i);
a=s*i;
printf("=%d",a);
printf("\n");
}
getch();
}
#include<conio.h>
void main()
{
int s,i,a;
clrscr();
printf("Enter the number to print the multiplication table: ");
scanf("%d",&s);
printf("\n");
for(i=1; i <= 10; i++)
{
printf("%d",s);
printf(" * ");
printf("%d",i);
a=s*i;
printf("=%d",a);
printf("\n");
}
getch();
}
In the above code we use variable 's' to store the input value. And by using for loop the actual multiplication table is displayed.
Output:
Multiplication Table using C program
Reviewed by Amit Waghmare
on
January 04, 2020
Rating:
Do you realize there is a 12 word phrase you can tell your crush... that will induce deep emotions of love and impulsive attraction to you deep inside his chest?
ReplyDeleteThat's because deep inside these 12 words is a "secret signal" that fuels a man's instinct to love, idolize and care for you with all his heart...
===> 12 Words Who Fuel A Man's Love Impulse
This instinct is so hardwired into a man's genetics that it will make him try harder than ever before to make your relationship as strong as it can be.
As a matter of fact, triggering this mighty instinct is absolutely mandatory to getting the best ever relationship with your man that the moment you send your man one of these "Secret Signals"...
...You'll soon find him expose his heart and mind to you in such a way he's never experienced before and he will identify you as the only woman in the galaxy who has ever truly tempted him.