Skip to content

repeat .. until

Pascal post-condition in Pascal

Flowchart (ISO 5807)

NoYesStarti = 0Output ii = i + 1i ≥ 3EndFigure 1 — Repeat

Source code

Pascal
program Repeat;
var i: integer;
begin
  i := 0;
  repeat
    writeln(i);
    i := i + 1;
  until i >= 3;
end.

The editor opens with this code — change it and the chart redraws.

Language
Pascal
Constructs
post-condition in Pascal
Topic
Loops
Formats
Word, Visio, draw.io, PDF, SVG

Related examples