Answer to Question #304611 in Python for wannabee

Question #304611

Smallest of the Three

by CodeChum Admin

There's always going to be that odd one out. In this case, it's the one with the smallest value. It's your job to determine which one that is!


Instructions:

  1. Input three integers in one line.
  2. Evaluate the integers using conditional statements and print out the integer with the smallest value among the three.

Input

A line containing three integers separated by a space.

10·5·-5

Output

A line containing an integer.

-5
1
Expert's answer
2022-03-02T01:17:07-0500
a, b, c = input().split()
m = int(a)
if int(b) < m:
	m = int(b)
if int(c)  < m:
	m = int(c)
print(m)

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