c_exercises/1-6.c

8 lines
97 B
C

#include <stdio.h>
int main(){
int c;
c=(getchar() != EOF);
printf("%d", c);
return 0;
}