home *** CD-ROM | disk | FTP | other *** search
- {
- Programming in Turbo Pascal.
- Turbo Pascal By Example By Greg Perry.
- Chapter 8 Review Exercise #3.
- Robert E. Wade 9-4-93
- }
-
- PROGRAM StringVariables;
-
- USES Crt;
-
- VAR FirstName: STRING[30];
- MiddleName: STRING[30];
- LastName: STRING[30];
- FullName: STRING[90];
-
- BEGIN
- CLRSCR;
-
- { Assign data to variables }
-
- FirstName := 'Robert';
- MiddleName := 'Eric';
- LastName := 'Wade';
-
- { Concatenated above variables and assigned
- it to variable "FullName" with spaces between each }
-
- FullName := FirstName + ' ' + MiddleName + ' ' + LastName;
-
- { Display the data to the screen }
-
- WRITELN( FullName );
- END.
-