Exercice : La transformation en itératif