ex2.pp 240 B

1234567891011
  1. Program Example2;
  2. uses Crt;
  3. { Program to demonstrate the KeyPressed function. }
  4. begin
  5. WriteLn('Waiting until a key is pressed');
  6. repeat
  7. until KeyPressed;
  8. {The key is not Read, so it should also be outputted at the commandline}
  9. end.