"Minimum of three numbers: Given three integers, print the smallest value. " - Python coding question

 

 


 

CODING QUESTION

Given three integers, print the smallest value.

SOLUTION

x=int(input())
y=int(input())
z=int(input())

if x<y:
    if x<z:
        print(x)
    else:
        print(z)
else:
    if y<z:
        print(y)
    else:
        print(z)

Input : 

5

3

7

Output : 3