nevermind

This commit is contained in:
Michal Utľák 2024-02-21 15:38:18 +00:00
parent f9d5a2149e
commit 287b70ad4d

View File

@ -2,12 +2,12 @@
int main() { int main() {
int text; int text;
int riadky = 0; int lines_count = 0;
while ((text = getchar()) != EOF) { while ((text = getchar()) != EOF) {
if (text == '\n') { if (text == '\n') {
putchar('\n'); putchar('\n');
riadky++; lines_count++;
} else if (text == '\t') { } else if (text == '\t') {
putchar('\t'); putchar('\t');
continue; continue;
@ -20,8 +20,7 @@ int main() {
} }
} }
printf("\nPocet riadkov: %d\n", riadky); printf("\nLines count: %d\n", lines_count);
return 0; return 0;
} }