2.8. Nombres : siècle#
Consigne#
Étant donnée une année (entrée au clavier comme un entier positif) trouver et afficher le siècle correspondant. Noter que, par exemple, le 20ème siècle commence avec l’année 1901.
Example input#
2000
Example output#
20
Theory#
If you don’t know how to start solving this assignment, please, review a theory for this lesson:
https://snakify.org/lessons/integer_float_numbers/
You may also try step-by-step theory chunks:
Codez votre solution ci-dessous#
Cliquez ici pour voir la solution
a = int(input())
print((a - 1) // 100 + 1)