osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Exercize to understand from three numbers which is more high


number1 = int( input("Insert the first number: "))

number2 = int( input("Insert the second number: "))

number3 = int( input("Insert the third number: "))

if number1 > number2 and number1 > number3:
     print("Max number is: ",number1)

if number2 > number1 and number2 > number3:
     print("Max number is: ",number2)

else:
         print("Max number is: ",number3)

Try to insert numbers 3, 2 and 1 and the result will be number 3 and 1, 
can you help me to fix it?! :\

^Bart