Source: http://mathematiques.ac-bordeaux.fr/lycee2010/tice_algorithmique/progression/boucle_tantque.pdf