Answer to Question #220415 in Python for Hari nadh babu

Question #220415

Calculate Double or Triple

Write a Python program of Calculate Double or Triple. It consists of two test cases


The below link contains Calculate Double or Triple - Question, explanation and test cases


https://drive.google.com/file/d/1KhGDfF3F_z2lSwKOmcNZYqBCEW67WXm8/view?usp=sharing


We need all test caese can be come while code was running

1
Expert's answer
2021-07-25T16:03:02-0400
num = int(input("Enter a number:"))
check = num % 3
if check==0:
    b = 3 * num
    print(b)
else:
    b = 2 * num
    print(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
APPROVED BY CLIENTS