Write a C program to find the multiplication of three numbers
please someone help☹️
Answers
Answered by
3
Answer:
#include<stdio.h>
int main ()
{
int a,b,c,d;
printf {"ENTER THE FIRST NUMBER"};
scanf{"%d",&a};
printf {"ENTER THE SECOND NUMBER"};
scanf{"%d",&b};
printf {"ENTER THE THIRD NUMBER"};
scanf{"%d",&c};
d=a*b*c;
printf{"THE RESULT IS %d",d};
return 0;
}
Explanation:
thank you hope it helps you
I did in Dev c++ app.
why 4 star
it is fully correct
Answered by
3
The given program is written in C.
#include <stdio.h>
int main() {
int a,b,c,p;
printf("Enter first number: ");
scanf("%d",&a);
printf("Enter second number: ");
scanf("%d",&b);
printf("Enter third number: ");
scanf("%d",&c);
p=a*b*c;
printf("Product of the numbers is: %d",p);
}
- Accept three numbers.
- Multiply the numbers and store the result in p variable.
- Display the value of the variable 'p'.
See the attachment for output.
Attachments:
Similar questions