This commit is contained in:
Pavlo Tverdyi 2020-03-01 13:33:27 +01:00
parent f265d52225
commit 3502265db7

View File

@ -17,13 +17,10 @@ int main()
else if(simb==EOF){ else if(simb==EOF){
break; break;
} }
if(simb=='\n'){
riad++;
}
putchar(simb); putchar(simb);
if(simb=='\n'){
riad++;
}
if(simb=='\n'){
riad++;
}
} }
printf("\nPočet riadkov: %d\n",riad); printf("\nPočet riadkov: %d\n",riad);
return 0; return 0;