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

Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS