From 5433f7161662106ac6337db8e6344a705bb18fc2 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Tue, 16 Nov 2021 19:33:57 +0800 Subject: 1.6 and 1.7 --- 1/7.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 1/7.c (limited to '1/7.c') 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 + +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 -- cgit v1.2.3