Commit | Line | Data |
---|---|---|
7dbf621a C |
1 | program Main(input, output); |
2 | procedure copy(var inp, out: text); | |
3 | var | |
4 | c: char; | |
5 | begin | |
6 | while not eof(inp) do | |
7 | begin | |
8 | while not eoln(inp) do | |
9 | begin | |
10 | c := inp^; | |
11 | out^ := c; | |
12 | put(out); | |
13 | get(inp); | |
14 | end; | |
15 | writeln; | |
16 | get(inp); | |
17 | end; | |
18 | end; | |
19 | begin | |
20 | copy(input, output); | |
21 | end. | |
22 | ||
23 | 1441 statements executed in 0.30 seconds cpu time. |