Computer Science, asked by sofiey, 6 hours ago

Write a C program to find the multiplication of three numbers
please someone help☹️​

Answers

Answered by supriyasoham1988
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 anindyaadhikari13
3

\texttt{\textsf{\large{\underline{Solution}:}}}

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);

}

\texttt{\textsf{\large{\underline{Logic}:}}}

  • 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