*/
Want to see what people are talking about? See the latest forum posts.
*/

View \READCHAR.PAS

Getting Started with the Pascal tutorial, source

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


(* Chapter 10 - Program 4 *)
program Read_Some_Char_Data;

var  Letter : char;
     Index  : byte;

begin
   for Index := 1 to 5 do begin
      Write('Input a character ');
      Readln(Letter);
      Writeln('The character input was an ',Letter);
   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.