Copie du wikimiroir

Ceci est un miroir du wiki de pascal.chat. La modification, l’historique et la connexion se trouvent là-bas.

Repeat/fr

Deutsch · English · Français · Suomi · Русский

Ce mot-clé est utilisé pour une construction itérative semblable à la boucle while do.

Syntax:

pascal

  repeat
    <statement block>
  until <condition>;

<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.

<condition>: condition de terminaison de la boucle.

Exemple:

pascal
  x := 1;
  repeat
    DoSomethingHere(x);
    x := x + 1;
  until x = 10

Elle diffère sur deux points d'avec la boucle while:


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.

Version 1, dernière modification par WikiArchive .