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