blob: eeade8e941b91fcb139a32c438e50d161b8e9f52 (
plain) (
blame)
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
27
28
29
|
#include <stdio.h>
/* Copy input to output; 1st version */
//main() {
// int c;
//
// c = getchar();
//
// while (c != EOF) {
// putchar(c);
// c = getchar();
// }
//}
/* Copy input to output; 2nd version */
main() {
int c;
while ((c = getchar()) != EOF) {
putchar(c);
}
}
//main() {
// printf("%d", EOF);
// getchar();
// printf("%d", getchar());
// printf("%d", getchar());
//}
|