write a program to print of sum of two number a and b if there sum is less than two otherwise print the product of number
print('Enter first number:')
a = float(input())
print('Enter second number:')
b = float(input())
if (a + b) < 2:
print(f'Sum = {a + b}')
else:
print(f'Product = {a * b}')
Comments
Leave a comment