1 2 3 4 5 6 7 8 9 10
// from section 1.5 of K&R #include <stdio.h> int main() { int c; while ((c = getchar()) != EOF) { putchar(c); } return 0; }