Sign in Join
Wiki copytemporary

Until/ru: what changed

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

OldNewLine
11Является [[Keyword/ru|ключевым словом]], которое используется в управляющей конструкции аналогично циклу '[[While/ru|while]] [[Do/ru|do]]'.
22
33Синтаксис:
44
5-` `**`repeat`**\
6-` `**`<блок операторов>`**\
7-` `**`until <условие>;`**
5+```text
6+ repeat
7+ <блок операторов>
8+ until <условие>;
9+```
810
911\<блок операторов\>: одиночный оператор на языке pascal или блок операторов, заключенный в *begin-end*.
1012
1113\<условие\>: выражение, значение которого является типом boolean.
1214
1315Пример:
1416
15-` `**`x := 1;`**\
16-` `**`repeat`**\
17-` `**`begin`**\
18-` `**`DoSomethingHere(x);`**\
19-` `**`x := x + 1;`**\
20-` `**`end;`**\
21-` `**`until x = 10;`**
17+``` pascal
18+ x := 1;
19+ repeat
20+ begin
21+ DoSomethingHere(x);
22+ x := x + 1;
23+ end;
24+ until x = 10;
25+```
2226
2327---
2428*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).*

Back to history