C Program To Find Multiplication Of Two Numbers
C Program To Find multiplication of two numbers
In this example, you will learn to calculate Multiplication Of Two Numbers Using printf() And scanf() Functions.
How Program Works ??
If You Entered a=10 And B=10 Then
We Use (*) Asterisk Operators To Calculate Multiplication
It Represent As multiplication = a * b;
where a = 10 , b = 10 And Answers Which Multiplication = 100;
Code For " multiplication Of Two Numbers ", Using printf() Function.
/* Author --> HARSH PATEL */
#include<stdio.h>
void main()
{
int a = 10; //You Can Add Any Number
int b = 10; //You Can Add Any Number
int c = a * b; //Now int C Calculate multiplication Of Two Numbers Which You Added On a & b
printf("Multiplication Of Two Numbers = %d",c);
}
Multiplication Of Two Numbers = 10
Now Using
Function.
Now Code For " Find Multiplication Of Two Numbers ", Using scanf() Function.
/* Author --> HARSH PATEL */
#include<stdio.h>
int main()
{
int a,b,multiplication;
printf("Enter First Number : ");
scanf("%d",&a);
printf("Enter Second Number : ");
scanf("%d",&b);
multiplication = a * b;
printf("Multiplication Of Two Numbers = %d",multiplication);
return 0;
}
Enter First Number : 10
Enter Second Number : 10
Multiplication Of Two Numbers = 100
- Now Program End Without Any Error.
Recommended,
- Sum Of Two Numbers In C
- Subtraction Of Two Numbers In C
- Multiplication Of Two Numbers In C
- Division Of Two Numbers In C
![🖥️](https://fonts.gstatic.com/s/e/notoemoji/14.0/1f5a5_fe0f/32.png)
![👨🎓](https://fonts.gstatic.com/s/e/notoemoji/14.0/1f468_200d_1f393/32.png)
![👩🎓](https://fonts.gstatic.com/s/e/notoemoji/14.0/1f469_200d_1f393/32.png)