1. Write a program to accept two integer values from the user and return their product. If the product is
greater than 1000, then return their sum.
Answers
Answered by
0
Python program:
num_1 = int(input("Enter a number: "))
num_2 = int(input("Enter another number: "))
if(num_1 * num_2 > 1000):
print("The sum is" + num_1 + num_2)
else:
print("The product is" + num_1 * num_2)
Similar questions