This commit is contained in:
Yaroslav Orlianskyi 2022-03-02 14:17:22 +01:00
parent 4a50937dab
commit 370b9220af

View File

@ -2,9 +2,12 @@
int main(){
int c = 0;
int counter = 0;
char a;
while(1){
c = getchar();
if(c == '\n')
counter++;
if(c == EOF)
break;
if (c >= 'a' && c <= 'z')
@ -14,5 +17,6 @@ int main(){
a = c;
putchar(a);
}
printf("\nPočet riadkov: %d\n",counter);
return 0;
}