Repeat/fi: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Repeat/fi
| Old | New | Line | |
|---|---|---|---|
| 1 | + | [[Reserved word/fi|Varattua sanaa]] `repeat` käytetään ohjausrakenteessa, joka on samankaltainen kuin [[While/fi|while]] [[Do/fi|do]] silmukan. | |
| 2 | + | ||
| 3 | + | ## Syntaksi | |
| 4 | + | ||
| 5 | + | ``` pascal | |
| 6 | + | repeat | |
| 7 | + | <lauselohko> | |
| 8 | + | until <ehto>; | |
| 9 | + | ``` | |
| 10 | + | ||
| 11 | + | - \<lauselohko\>: Yksittäinen [[Pascal/fi|Pascal]] [[statement/fi|-lause]] tai [[Begin/fi|begin]]-[[End/fi|end]] suljettu lauseiden lohko. | |
| 12 | + | - \<ehto\>: [[expression/fi|Lauseke]] jonka tuloksena muodostuu [[Boolean/fi|boolean]] arvo. | |
| 13 | + | ||
| 14 | + | ## Esimerkki | |
| 15 | + | ||
| 16 | + | ``` pascal | |
| 17 | + | x := 1; | |
| 18 | + | repeat | |
| 19 | + | DoSomethingHere(x); | |
| 20 | + | x := x + 1; | |
| 21 | + | until x = 10; | |
| 22 | + | ``` | |
| 23 | + | ||
| 24 | + | --- | |
| 25 | + | *From the Free Pascal wiki, page "Repeat/fi", as it stood on 2022-08-06 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).* |
