Update 'cv1/program.c'
This commit is contained in:
parent
b5341ca975
commit
cdbf9080a2
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user