Skip to content
Home » Product of Three Numbers in Python using User Input

Product of Three Numbers in Python using User Input

Learn about Product of Three Numbers in Python using User Input in the below code example. Also, refer to the comments in the code snippet to get a detailed view about what’s actually happening.

Product of Three Numbers in Python using User Input

# Program to multiply three numbers

num1 = float(input('first number: '))
num2 = float(input('second number: '))
num3 = float(input('third number: '))

# calculate the product
product = num1 * num2 * num3

# print result
print("The product of number: ",product)

Output:

first number: 2
second number: 3
third number: 4
The product of number:  24.0

Hope above code works for you and Refer the below Related Codes to gain more insights. Happy coding and come back again.

Similar Code : Python Program to Multiply Three Numbers