SAD
This commit is contained in:
parent
4a50937dab
commit
370b9220af
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user