blob: 9fcae1cb08ee30bce3f23fa05071f28b6019d52f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#print
(Section 1.5)
Write a program that copies exactly three characters
from its input to its output.
When compiled and tested, type ready.
#once #create Ref
XY
#once #create z1
XY
marks the spot.
#user
a.out <z1 >z2
#cmp z2 Ref
#succeed
/* Here is one possible solution */
main()
{
putchar(getchar());
putchar(getchar());
putchar(getchar());
}
#log
#next
5.1b 10
5.2a 5
|