final fix
This commit is contained in:
parent
4a19e693a0
commit
f9d5a2149e
@ -2,12 +2,12 @@
|
|||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
int text;
|
int text;
|
||||||
int lines_count = 0;
|
int riadky = 0;
|
||||||
|
|
||||||
while ((text = getchar()) != EOF) {
|
while ((text = getchar()) != EOF) {
|
||||||
if (text == '\n') {
|
if (text == '\n') {
|
||||||
putchar('\n');
|
putchar('\n');
|
||||||
lines_count++;
|
riadky++;
|
||||||
} else if (text == '\t') {
|
} else if (text == '\t') {
|
||||||
putchar('\t');
|
putchar('\t');
|
||||||
continue;
|
continue;
|
||||||
@ -20,7 +20,7 @@ int main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nLines count: %d\n", lines_count);
|
printf("\nPocet riadkov: %d\n", riadky);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user