langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
32
Task/Input-loop/Pascal/input-loop.pascal
Normal file
32
Task/Input-loop/Pascal/input-loop.pascal
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{ for stdio }
|
||||
|
||||
var
|
||||
|
||||
s : string ;
|
||||
|
||||
begin
|
||||
|
||||
repeat
|
||||
|
||||
readln(s);
|
||||
|
||||
until s = "" ;
|
||||
|
||||
{ for a file }
|
||||
|
||||
var
|
||||
|
||||
f : text ;
|
||||
s : string ;
|
||||
|
||||
begin
|
||||
|
||||
assignfile(f,'foo');
|
||||
reset(f);
|
||||
|
||||
while not eof(f) do
|
||||
readln(f,s);
|
||||
|
||||
closefile(f);
|
||||
|
||||
end;
|
||||
Loading…
Add table
Add a link
Reference in a new issue