Python Programming - Console Input/Output - Discussion

Discussion Forum : Console Input/Output - General Questions (Q.No. 58)
58.
How can you prompt the user to enter two numbers and print their product?
product = input("Enter first number: ") * input("Enter second number: "); print(product)
product = int(input("Enter first number: ")) * int(input("Enter second number: ")); print(product)
product = multiply_numbers(input("Enter first number: "), input("Enter second number: ")); print(product)
product = input("Enter first number: ").multiply(input("Enter second number: ")); print(product)
Answer: Option
Explanation:
To prompt the user to enter two numbers and print their product, use int(input("Enter first number: ")) * int(input("Enter second number: ")); print(product).
Discussion:
Be the first person to comment on this question !

Post your comments here:

Your comments will be displayed after verification.