tw33963.pp 186 B

1234567891011
  1. {$ifdef fpc}{$mode delphi}{$H+}{$endif}
  2. var C: Currency;
  3. begin
  4. c:= 1000;
  5. c:= c*1.05;
  6. // at this point C=1050
  7. writeln(c:4:2);
  8. if c<>1050 then
  9. halt(1);
  10. writeln('ok');
  11. end.