Question #236422

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


Expert's answer

a = int(input('A = '))
b = int(input('B = '))
if a+b < 10:
	print(a+b)
else:
	print(a*b)
LATEST TUTORIALS
APPROVED BY CLIENTS