Source: https://dorvali.charlesclarke.org.uk/344b2d8/algorithmes-en-langage-c-cours-et-exercices.pdf