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:

https://snakify.org/lessons/integer_float_numbers/steps/1/

Codez votre solution ci-dessous#

[splashscreen] enabled = false # Read an integer: # a = int(input()) # Print a value: # print(a) from js import document as _DOC def clear_term(): ter = _DOC.getElementById("my-terminal").firstChild ter.innerHTML = ''