Until/ru: what changed
Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.
Title: Until/ru
| Old | New | Line | |
|---|---|---|---|
| 1 | + | Является [[Keyword/ru|ключевым словом]], которое используется в управляющей конструкции аналогично циклу '[[While/ru|while]] [[Do/ru|do]]'. | |
| 2 | + | ||
| 3 | + | Синтаксис: | |
| 4 | + | ||
| 5 | + | ` `**`repeat`**\ | |
| 6 | + | ` `**`<блок операторов>`**\ | |
| 7 | + | ` `**`until <условие>;`** | |
| 8 | + | ||
| 9 | + | \<блок операторов\>: одиночный оператор на языке pascal или блок операторов, заключенный в *begin-end*. | |
| 10 | + | ||
| 11 | + | \<условие\>: выражение, значение которого является типом boolean. | |
| 12 | + | ||
| 13 | + | Пример: | |
| 14 | + | ||
| 15 | + | ` `**`x := 1;`**\ | |
| 16 | + | ` `**`repeat`**\ | |
| 17 | + | ` `**`begin`**\ | |
| 18 | + | ` `**`DoSomethingHere(x);`**\ | |
| 19 | + | ` `**`x := x + 1;`**\ | |
| 20 | + | ` `**`end;`**\ | |
| 21 | + | ` `**`until x = 10;`** | |
| 22 | + | ||
| 23 | + | --- | |
| 24 | + | *From the Free Pascal wiki, page "Until/ru", as it stood on 2019-08-11 after a change by Useroflazarus, 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).* |
