#C13065. Swap Case String Transformation
Swap Case String Transformation
Swap Case String Transformation
Given a string, convert every uppercase letter to lowercase and every lowercase letter to uppercase. Non-alphabetical characters should remain unchanged.
For example, if the input is HeLLo WOrld
, the output should be hEllO woRLD
. This problem tests your basic string manipulation skills and understanding of character cases.
inputFormat
The input consists of a single line containing a string. The string may include letters, digits, spaces, and special characters. The input is provided via standard input (stdin).
outputFormat
Output a single line which is the result of swapping the case of each alphabetical character in the input string. The output should be written to standard output (stdout).
## sampleHeLLo WOrld
hEllO woRLD