Discussion about this post

User's avatar
Islam's avatar

num1 = 12

num2 = 45

num3 = 32

if num2 > num1 and num2 > num3:

max_number = num2

elif num2 < num3 and num1 < num3:

max_number = num3

else:

max_number = num1

print(f"The largest number is {max_number}")

Expand full comment
Julio Agurto's avatar

num1=float(input("Ingrese el primer numero: "))

num2=float(input("Ingrese el segundo numero: "))

num3=float(input("Ingrese el tercer numero: "))

if num1>num2 and num1>num3:

print(f'El numero mayor es: {num1}')

elif num2>num1 and num2>num3:

print(f'El numero mayor es: {num2}')

else:

print(f'El numero mayor es: {num3}')

Expand full comment
2 more comments...

No posts