repeat...until (reserved words)

Language:
Русский
English

  repeat...until (reserved words)


The statements between repeat and until are executed in sequence until, at the end of a sequence, the Boolean expression is True.

Syntax

 repeat
   statement;
   statement;
   ...
   statement
 until expression

Remarks

The sequence is executed at least once.

Example

 { Repeat Statements }
   repeat Ch := GetChar until Ch <> ' ';

   repeat
     Write('Enter value: ');
     ReadLn(I);
   until (I >= 0) and (I <= '9');

Тэги: repeat until
| G+
Код для вставки: :: :: :: ::
Поделиться: // //