Answer to Question #236417 in Python for Sai Kumar Gudisa

Question #236417

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


1
Expert's answer
2021-09-12T14:23:15-0400
A=int(input())
B=int(input())
sum=A+B
if(sum>=10):
    product=A*B
    print(product)
else:
    print(sum)

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