This commit is contained in:
Andrii Hermaniuk 2022-03-04 14:08:02 +01:00
parent f88828014b
commit 5b551900e6

View File

@ -1,12 +1,15 @@
#include<stdio.h> #include<stdio.h>
int main(){ int main(){
int counter=1, Sym; int counter=0, Sym;
char OutSym; char OutSym;
while(1){ while(1){
Sym=getchar(); Sym=getchar();
if(Sym==EOF || Sym==0){ if(Sym==0){
counter++;
}
if(Sym==EOF){
counter++; counter++;
break; break;
} }