RosettaCodeData/Task/Loops-For-with-a-specified-step/Delphi/loops-for-with-a-specified-step.pas
2024-10-16 18:07:41 -07:00

13 lines
142 B
ObjectPascal

program LoopWithStep;
{$APPTYPE CONSOLE}
var
i: Integer;
begin
i:=2;
while i <= 8 do begin
WriteLn(i);
Inc(i, 2);
end;
end.