home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C!T ROM 2
/
ctrom_ii_b.zip
/
ctrom_ii_b
/
PROGRAM
/
PASCAL
/
PASTUT34
/
USERIO.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1993-01-14
|
1KB
|
32 lines
program InputOutput;
{~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~}
{ Program to illustrate user input from the keyboard and output to the }
{ screen. Use is made of the procedures Readln, Write and Writeln found }
{ in the System Unit, which does not have to be declared in the Uses }
{ clause as it is automatically made available. Consult the Library }
{ Reference for details of these procedures. }
{ }
{ USERIO.PAS -> USERIO.EXE R Shaw 13.1.93 }
{_______________________________________________________________________}
uses Crt; {The Crt unit contains the procedure to clear the screen}
var
ch : array[1..3] of char;
i : integer;
begin
ClrScr;
for i := 1 to 3 do
begin
write('Please enter leter ',i,' of a three letter word and press ENTER: ');
readln(ch[i]);
end;
writeln;
writeln('The word is: ',ch[1],ch[2],ch[3]);
writeln;
write('Press any key to conclude.');
repeat until keypressed;
end.