IN THIS PROGRAM YOU WILL LEARN ABOUT MULTIPLICATION OF TWO NUMBERS IN C ,THE INPUT IS GIVEN BY USER:
HINTS:
Multiplication of two numbers given by the user.
Let’s assume the input given by user will be integer.
Declaration of variables.
Let’s see the code.
CODE:
#include<stdio.h>
int main()
{
int a,b,mul; //variable declaration
printf("Enter the 1st no :");
scanf("%d",&a);
printf("Enter the 2nd no :");
scanf("%d",&b);
mul=a * b;
printf("Multiplication of two numbers is =%d\n",mul);
return 0;
}
OUTPUT:
CLARIFICATION:
Here a and b are the input provided by the user’s.
Assigning the Multiplication of a and b in the variable “mul”
🤘🤘🙏🙏☀️☀️☀️☀️
LikeLike
Very good 😊
LikeLike
Good job!
LikeLike