Source: https://mdl66.ac-montpellier.fr/lire/lecture-cycle2/code/exemple_de_programmation_CP_CE1.pdf