summaryrefslogtreecommitdiffstats
path: root/1
diff options
context:
space:
mode:
Diffstat (limited to '1')
-rw-r--r--1/6.c11
-rw-r--r--1/7.c13
2 files changed, 24 insertions, 0 deletions
diff --git a/1/6.c b/1/6.c
new file mode 100644
index 0000000..c478c7a
--- /dev/null
+++ b/1/6.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ int c;
+
+ while ((c = getchar()) != EOF) {
+ putchar(c);
+ }
+
+ return 0;
+} \ No newline at end of file
diff --git a/1/7.c b/1/7.c
new file mode 100644
index 0000000..44abfd3
--- /dev/null
+++ b/1/7.c
@@ -0,0 +1,13 @@
+
+#include <stdio.h>
+
+int main(int argc, char *argv[]) {
+ int c;
+
+ while ((c = getchar()) != EOF) {
+ putchar(c);
+ }
+
+ printf("Value of EOF: %d\n", c);
+ return 0;
+} \ No newline at end of file