This commit is contained in:
Andrii Hermaniuk 2022-03-04 14:10:25 +01:00
parent 5b551900e6
commit a581bacd64

View File

@ -6,7 +6,7 @@
while(1){ while(1){
Sym=getchar(); Sym=getchar();
if(Sym==0){ if(Sym==0||Sym=='\n'){
counter++; counter++;
} }
if(Sym==EOF){ if(Sym==EOF){