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>
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;
}