Toggle Alphabet Case
Time limit1sMemory limit128 MB
Read a word up to length 100 and print it with every letter's case swapped.
- Level
Easy1 of 10
- Topics
- String, Implementation
- Solved
- No attempts yet
Problem
You are given a word containing only lowercase and uppercase English letters. Change every uppercase letter to lowercase and every lowercase letter to uppercase, then print the resulting word.
Input
The first line contains a word made only of lowercase and uppercase English letters. The word length is at most 100.
Output
Print the word obtained by toggling the case of every letter in the input word.