Answer to Question #219800 in Python for Hari nadh babu

Question #219800

Smallest Among 3 Numbers

Write a Python Program of Smallest Among 3 Numbers.It Consists of two test cases


The below link contains Smallest Among 3 Numbers - question, explanation and test cases


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


We need all test cases can be come while code was run

1
Expert's answer
2021-07-25T08:43:48-0400
num1 = int(input("Enter First number:"))
num2 = int(input("Enter Second number:"))
num3 = int(input("Enter Third number:"))
if num1 >= num2:
    if num2 <= num3:
        print(num2)
    else: 
        print(num3) 
else:
    if num1 <= num3:
        print(num1)
    else: 
        print(num3)

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