1 2 3 4 5 6 7
#include <stdio.h> int main(void) { while (1) { printf("%d\n", getchar()==EOF); } return 0; }