89. Toggle Case
EasyString
Change every lowercase letter to uppercase and every uppercase letter to lowercase. Other characters stay the same.
Input format
A single line s.
Output format
The toggled string.
Example 1
Input
Hello World
Output
hELLO wORLD
Example 2
Input
abc
Output
ABC
Constraints
1 ≤ |s| ≤ 10⁵
Read input from standard input and print the answer to standard output. Your code is judged against 4 test cases, most of them hidden.
Loading the MyLoginn IDE…