Answer to Question #294423 in Python for Rohith

Question #294423

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

1
Expert's answer
2022-02-06T03:51:57-0500
a = int(input('Enter a: '))
b = int(input('Enter b: '))

if a+b >= 10:
    print(a*b)
else: 
    print(a+b)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS