nevermind
This commit is contained in:
parent
f9d5a2149e
commit
287b70ad4d
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user