Skip to content
Home » Python Program for Multiplication of Two Numbers using user input

Python Program for Multiplication of Two Numbers using user input

Learn about Python Program for Multiplication of Two Numbers 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.

Python Program for Multiplication of Two Numbers using user input

# program to multiply two number

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

product = num1*num2

# print multiplication value
print("The Product of Number: %0.1f" %product)

Output:

Enter first number: 4
Enter second number: 6
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 Two Numbers