tw0909.pp 232 B

1234567
  1. uses sysutils;
  2. var r:array[0..3] of real;
  3. begin
  4. r[0]:=1; r[1]:=2; r[2]:=3; r[3]:=4;
  5. // the following is supposed to print "1, 2, 3, 4", instead it prints "4, 4, 4, 4"
  6. writeln(format('%g, %g, %g, %g',[r[0],r[1],r[2],r[3]]));
  7. end.