From a581bacd64fdc2d957d6cc5bc2ed690958e50301 Mon Sep 17 00:00:00 2001 From: Andrii Hermaniuk Date: Fri, 4 Mar 2022 14:10:25 +0100 Subject: [PATCH] add file --- du1/program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/du1/program.c b/du1/program.c index 9fd2828..b746cc7 100644 --- a/du1/program.c +++ b/du1/program.c @@ -6,7 +6,7 @@ while(1){ Sym=getchar(); - if(Sym==0){ + if(Sym==0||Sym=='\n'){ counter++; } if(Sym==EOF){