ex2.pp 246 B

123456789101112
  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,
  9. so it should also be outputted at the commandline}
  10. end.