Write a program to print the sum of two numbers, A and B. If their sum is less than 10, otherwise print the product of numbers.
solution please
A=int(input())
B=int(input())
sum=A+B
if(sum>=10):
product=A*B
print(product)
else:
print(sum)
Comments
Leave a comment