the-c-programming-language/chapter01/ex07.c (156B)
1 /* Exercise 1-6 & 1-7 */ 2 3 #include <stdio.h> 4 5 int main (void) 6 { 7 int c; 8 9 printf("%d\n", EOF); 10 11 while ((c = getchar()) != EOF) 12 putchar(c); 13 14 return 0; 15 }
c-first-stepsa C playground |