funguj prosimta
This commit is contained in:
parent
9ac43be03d
commit
655ba5e29e
@ -5,11 +5,11 @@ int main() {
|
|||||||
int lines_count = 0;
|
int lines_count = 0;
|
||||||
|
|
||||||
while ((text = getchar()) != EOF) {
|
while ((text = getchar()) != EOF) {
|
||||||
if (text == '\n') {
|
if (text == '\t') {
|
||||||
lines_count++;
|
|
||||||
} else if (text == '\t') {
|
|
||||||
putchar('\t');
|
putchar('\t');
|
||||||
continue;
|
} else if (text == '\n') {
|
||||||
|
lines_count++;
|
||||||
|
putchar('\n');
|
||||||
} else if (text >= 'a' && text <= 'z') {
|
} else if (text >= 'a' && text <= 'z') {
|
||||||
putchar(text - 'a' + 'A');
|
putchar(text - 'a' + 'A');
|
||||||
} else if (text >= 'A' && text <= 'Z') {
|
} else if (text >= 'A' && text <= 'Z') {
|
||||||
@ -21,6 +21,6 @@ int main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
printf("\nLines count: %d\n", lines_count);
|
printf("Lines count: %d\n", lines_count);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user