Lorenzo Bruno
Italian
Italian
  • Welcome on board
  • HackTheBox
    • Quickstart
      • Writeups
        • TwoMillion
        • LinkVortex
        • Chemistry
        • Titanic
        • Moon
  • TryHackMe
    • Quickstart
      • Writeups
        • Pickle Rick
        • Pyrat
        • Lookup
        • Vulnversity
      • Advent of Cyber 2024
        • Writeups
          • Day 1: Maybe SOC-mas music, he thought, doesn't come from a store?
          • Day 2: One man's false positive is another man's potpourri.
          • Day 3: Even if I wanted to go, their vulnerabilities wouldn't allow it.
          • Day 4: I’m all atomic inside!
  • Sviluppo Malware
    • Basi
  • Corso python
    • Benvenuti
      • Esercizi
        • esercizio_01
        • esercizio_02
        • esercizio_03
        • esercizio_04
        • esercizio_05
        • esercizio_06
        • esercizio_07
        • esercizio_08
        • esercizio_09
        • esercizio_10: Challenge
        • esercizio_11
        • esercizio_12
        • esercizio_13
        • esercizio_14
        • esercizio_15: Challenge n.2
        • esercizio_16
        • esercizio_17
      • Slide
      • Hall of fame
  • Useful websites and materials
Powered by GitBook
On this page
  1. Corso python
  2. Benvenuti
  3. Esercizi

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) 
Previousesercizio_08Nextesercizio_10: Challenge

Last updated 5 months ago