100 zeby???

This commit is contained in:
Michal Utľák 2024-02-21 14:30:19 +00:00
parent 0728db4408
commit 78c9d0765b

View File

@ -11,10 +11,8 @@ int main() {
} else if (text == '\t') { } else if (text == '\t') {
putchar('\t'); putchar('\t');
continue; continue;
} else if (text >= 'a' && text <= 'z') { } else if ((text >= 'a' && text <= 'z') || (text >= 'A' && text <= 'Z')) {
putchar(text - 'a' + 'A'); putchar(text ^ ' ');
} else if (text >= 'A' && text <= 'Z') {
putchar(text - 'A' + 'a');
} else if (text < 32 || text == 127) { } else if (text < 32 || text == 127) {
continue; continue;
} else { } else {
@ -25,3 +23,4 @@ int main() {
printf("\nLines count: %d\n", lines_count); printf("\nLines count: %d\n", lines_count);
return 0; return 0;
} }