summaryrefslogtreecommitdiff
path: root/ex1-6.c
diff options
context:
space:
mode:
Diffstat (limited to 'ex1-6.c')
-rw-r--r--ex1-6.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/ex1-6.c b/ex1-6.c
new file mode 100644
index 0000000..73e9010
--- /dev/null
+++ b/ex1-6.c
@@ -0,0 +1,7 @@
+#include <stdio.h>
+int main(void) {
+ while (1) {
+ printf("%d\n", getchar()==EOF);
+ }
+ return 0;
+} \ No newline at end of file