#C3310. Alternate Case String
Alternate Case String
Alternate Case String
You are given a string. Your task is to output a new string where the case of each alphabetic character is swapped. That means all uppercase letters should be converted to lowercase and all lowercase letters should be converted to uppercase. Non-alphabetic characters must remain unchanged. An empty string should yield an empty string.
For example, if the input is Hello World
, the output should be hELLO wORLD
.
Input and output are handled through standard input and standard output respectively.
inputFormat
A single line containing the string to be processed.
outputFormat
A single line with the case of each alphabet letter in the input string swapped.## sample
Hello World
hELLO wORLD
</p>