for loop: example A

Here is the program that prints out the text "Hi" 10 times.
program forloopA;

var
  i : integer;  { looping variable }

begin
  for i := 1 to 10 do
    writeln('Hi');
end.

CS101 - for loop: example A / Robert I. Pitts / rip@cs.bu.edu