esercizio_09

What if?

Impariamo ad usare la struttura condizionale

# Leggiamo due numeri da standard input
numero1 = int(input("Enter the first number: "))
numero2 = int(input("Enter the second number: "))
 
# Verifichiamo quale sia il numero più grande tra i due
if number1 > number2:
    numero_maggiore = number1
else:
    numero_maggiore = number2
 
# Print the result
print("Il numero più grande è: ", numero_maggiore) 

Last updated