Basic Pascal Tutorial/Chapter 3/REPEAT..UNTIL/fr
English · Français · Български · 中文(中国) · 日本語
Tutoriel de Pascal Objet : Structures de contrôle / Boucles / Répéter jusqu'à
La boucle post-test a le format suivant :
repeat
Instruction1;
Instruction2
until BooleanExpression;Dans une boucle repeat, les instructions composées sont natives — vous n'avez pas besoin d'utiliser les begin-end. Aussi, la boucle continue jusqu'à ce que l'expression booléenne soit vérifiée (= TRUE), cela exprime une condition de terminaison.
Cette boucle est appelée post-test car la condition est testée après l'exécution du corps de la boucle. La boucle REPEAT est utile quand vous voulez exécuter au moins une fois la boucle et que la valeur initiale de l'expression booléenne importe peu.
From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 3/REPEAT..UNTIL/fr", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.