Update 'cv1/program.c'

This commit is contained in:
Weber 2024-02-21 19:21:36 +00:00
parent b5341ca975
commit cdbf9080a2

View File

@ -8,10 +8,13 @@ int main() {
putchar('\n'); putchar('\n');
line_count++; line_count++;
} else { } else {
if (!((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) && !(ch >= 32 && ch <= 126)) { if (ch >= 'a' && ch <= 'z') {
continue; putchar(ch - 32);
} else if (ch >= 'A' && ch <= 'Z') {
putchar(ch + 32);
} else {
putchar(ch);
} }
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
} }
} }