Files
Laboratori-PY/Laboratorio3/bisestile.py
2024-03-22 17:01:42 +01:00

6 lines
176 B
Python

anno = int(input("Inserisci un anno: "))
if anno % 400 == 0 or (anno % 4 == 0 and anno % 100 != 0):
print("L'anno è bisestile")
else:
print("L'anno non è bisestile")