Sign in Join
Wiki copytemporary

Repeat/fr: what changed

Revision 1 to 2. Removed lines have a minus sign; added lines have a plus sign.

OldNewLine
1-Ce [[Keyword/fr|mot-clé]] est utilisé pour une construction itérative semblable à la boucle [[While/fr|while]] [[Do/fr|do]].
2-
3-Syntax:
4-
5-``` pascal
1+Ce [[Keyword/fr|mot-clé]] est utilisé pour une construction itérative semblable à la boucle [[While/fr|while]] [[Do/fr|do]].
62
7- repeat
8- <statement block>
9- until <condition>;
3+Syntax:
104```
11-
12-\<statement block\>: Une instruction simple ou une suite d'instructions, les begin-end sont inutiles car les instructions sont déjà délimitées par *repeat* et *until*.
5+repeat
6+ <statement block>
7+ until <condition>;
8+```
139
14-\<condition\>: condition de terminaison de la boucle.
10+<statement block>: Une instruction simple ou une suite d'instructions, les begin-end sont inutiles car les instructions sont déjà délimitées par _repeat_ et _until_.
1511
16-Exemple:
12+<condition>: condition de terminaison de la boucle.
1713
18-``` pascal
19- x := 1;
20- repeat
21- DoSomethingHere(x);
22- x := x + 1;
23- until x = 10
14+Exemple:
2415```
16+x := 1;
17+ repeat
18+ DoSomethingHere(x);
19+ x := x + 1;
20+ until x = 10
21+```
2522
26-Elle diffère sur deux points d'avec la boucle while:
23+Elle diffère sur deux points d'avec la boucle while:
2724
28-- la condition est évaluée après les instructions qui sont donc exécutées au moins une fois
29-- la boucle prend fin lorsque la condition est vérifiée (on parle de condition de terminaison)
25+ * la condition est évaluée après les instructions qui sont donc exécutées au moins une fois
26+ * la boucle prend fin lorsque la condition est vérifiée (on parle de condition de terminaison)
3027
28+
29+**Mots-clés:** [[Begin/fr|begin]] — [[Do/fr|do]] — [[Else/fr|else]] — [[End/fr|end]] — [[For/fr|for]] — [[If/fr|if]] — repeat — [[Then/fr|then]] — [[Until/fr|until]] — [[While/fr|while]]
30+
3131---
32-*From the Free Pascal wiki, page "Repeat/fr", as it stood on 2020-09-05 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](/wiki-contact).*
32+*From the Free Pascal wiki, page "Repeat/fr", as the Internet Archive kept it on 2025-01-18, last changed on 2020-09-06. 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](/wiki-contact).*

Back to history