Do you receive the Programmer's Heaven newsletter? If not, why not subscribe?

View \READSTRG.PAS

Getting Started with the Pascal tutorial, source

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


(* Chapter 10 - Program 6 *)
program Read_A_String;

var Index : byte;
    Field : string[10];

begin
   for Index := 1 to 5 do begin
      Write('Enter up to 10 characters ');
      Readln(Field);
      Writeln('The data you entered was (',Field,')');
   end;
end.

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.