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