From 87879ee819843e8b6d111b96c35b218af9862e28 Mon Sep 17 00:00:00 2001 From: 1abhi23 Date: Sat, 6 Oct 2018 21:15:12 -0700 Subject: [PATCH] modified the code of eof.c --- Chapter1/Exercise 1-07/eof.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Chapter1/Exercise 1-07/eof.c b/Chapter1/Exercise 1-07/eof.c index d1f698e..248a662 100644 --- a/Chapter1/Exercise 1-07/eof.c +++ b/Chapter1/Exercise 1-07/eof.c @@ -5,9 +5,10 @@ */ #include - -int main(void) -{ - printf("The value of EOF is %d.\n", EOF); +#include +int main() +{ int EOF; + scanf( "%d" , &EOF ); + printf("The value of EOF is: %d\n", EOF); return 0; } \ No newline at end of file