Source: https://www.webinstit.net/mathematiques/algorithme/fiche_maternelle_algorithme9.pdf