Write a program to find the product of two double numbers by reading the input from the user.
Answers
Answered by
0
Program:
Python
try:
# Get numbers from the user
numbers = input("Enter two numbers seperated by space: ").split()
# As now we have the numbers we can calculate the sum
# and print the result to the user.
print("\nProduct: ", round(float(numbers[0])*float(numbers[1]), 2))
except:
print("\nPlease enter both the numbers!")
Output:
Provided in the attachments...
Hope this helps you <3
Attachments:
Similar questions