Skip to content

Instantly share code, notes, and snippets.

@freeonterminate
Created September 30, 2013 07:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freeonterminate/6760612 to your computer and use it in GitHub Desktop.
Save freeonterminate/6760612 to your computer and use it in GitHub Desktop.
Pascal の for 文を知らないと、どうなるか判らない系。
program ForQuiz;
var
Count: Integer;
i: Integer;
begin
Count := 3;
for i := 0 to Count - 1 do begin
Inc(Count); //→ Count := Count + 1;
Writeln(i); // 数字はいくつまで表示される?
end;
end.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment