*/
If you have a PH account, you can customize your PH profile.
*/

View \PRINTOUT.PAS

Getting Started with the Pascal tutorial, source

Submitted By: WEBMASTER
Rating: (Not rated) (Rate It)


(* Chapter 10 - Program 7 *)
program Printout_Example;

uses Printer;         (* This is needed for TURBO Pascal 4.0 only *)

var Index : byte;

begin
   Writeln(Output,'Printer program example');
   Writeln(Output,'Turn on your printer and install paper in it.');
   Writeln(Lst,'This is to demonstrate printing in Pascal');
   Writeln(Lst);
   for Index := 1 to 15 do begin
      Write(Lst,'The index value is ');
      Write(Lst,Index:3);
      Writeln(Lst,' at this point');
   end;
end.

corner
© 1996-2008 CommunityHeaven LLC. All rights reserved. Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
North American business development: Nicolai Wadstrom. Publisher: Lars Hagelin.