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');
line_count++;
} else {
if (!((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z')) && !(ch >= 32 && ch <= 126)) {
continue;
if (ch >= 'a' && ch <= 'z') {
putchar(ch - 32);
} else if (ch >= 'A' && ch <= 'Z') {
putchar(ch + 32);
} else {
putchar(ch);
}
putchar((ch >= 'a' && ch <= 'z') ? (ch - 32) : (ch + 32));
}
}