Computer Science, asked by priyankadimri87, 3 months ago

. Write a program in python to find out the product of three numbers a, b, and c entered by the user at run time with output

Answers

Answered by anindyaadhikari13
22

Required Answer:-

Question:

  • Write a program in python to find out the product of three numbers.

Solution:

In this program, we will take three numbers as input and store them in three variables. After taking input, we will multiply all the variables and store it in another variable. Now, it's time to display the result.

Here is the code.

a=int(input("Enter a: "))

b=int(input("Enter b: "))

c=int(input("Enter c: "))

p=a*b*c

print("Product is: ",p)

Output is attached for verification.

Attachments:
Answered by BrainlyProgrammer
16

Answer:

This is a very easy Question....Here is an approach.

Code:-

print("Enter value of a,b,c respectively")

a,b,c=(int)(input()),(int)(input()),(int)(input())

print("Product=",(2*3*4)

#Shortest code written by @swetank232894

Explaination:-

  • The program asks for input of 3 numbers from the user a b and c respectively.
  • Then it calculates the product of three numbers followed by printing the product

▶️ Output attached

Attachments:
Similar questions
Math, 9 months ago