FIRST.BAK 733 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. program first;
  2. (* Program to demonstrate simple constant translation *)
  3. const
  4. Version = 1;
  5. Sub_version = 0;
  6. Product = 'Turbo Translator';
  7. Bell = #$07; (* Bell hex code *)
  8. procedure Siren;
  9. var
  10. Frequency: integer;
  11. begin
  12. for Frequency := 500 to 2000 do
  13. begin
  14. Delay(1);
  15. Sound(Frequency);
  16. end;
  17. for Frequency := 2000 downto 500 do
  18. begin
  19. Delay(1);
  20. Sound(Frequency);
  21. end;
  22. NoSound;
  23. end;
  24. begin
  25. writeln; writeln;
  26. write('Welcome to ',Product,' version ');
  27. writeln(Version,'.',Sub_version);
  28. writeln(Bell, bell, BELL, bELL);
  29. writeln('The Programmers'' time saver');
  30. SIREN;
  31. END.
  32.