Exercice 1 — Boucle
On suit les instructions pas à pas (tableau des variables).
- Faire tourner : ; Répéter fois : ; Afficher .
Voir la correction
1. , puis , , . Le programme affiche (soit ).
Le réflexe à retenir
Faire tourner = suivre pas à pas avec un tableau des variables. Une boucle « répéter fois » applique fois la même opération.