Stuck? Need help? Ask questions on our forums.

View \STRINGS.PAS

This is the second disk of the PASCAL TUTOR system. It has the

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


(* Chapter 7 - Program 2 *)
program TURBO_Pascal_Strings;

var First_Name   : string[10];
    Initial      : char;
    Last_Name    : string[12];
    Full_Name    : string[25];

begin  (* main program *)
   First_Name := 'John';
   Initial := 'Q';
   Last_Name := 'Doe';
   Writeln(First_Name,Initial,Last_Name);
   Full_Name := First_Name + ' ' + Initial + ' ' + Last_Name;
   Writeln(Full_Name);
end(* main program *)

corner
© 1996-2008. 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.
Publisher: Lars Hagelin.
bootstrapLabs Logo A bootstrapLabs project.