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){