diff --git a/du1/program.c b/du1/program.c index 13a5863..9fd2828 100644 --- a/du1/program.c +++ b/du1/program.c @@ -1,12 +1,15 @@ #include int main(){ - int counter=1, Sym; + int counter=0, Sym; char OutSym; while(1){ Sym=getchar(); - if(Sym==EOF || Sym==0){ + if(Sym==0){ + counter++; + } + if(Sym==EOF){ counter++; break; }