Toggle String
Practice
4 (2431 votes)
Easy
Problem
68% Success 206862 Attempts 10 Points 5s Time Limit 256MB Memory 1024 KB Max Code

You have been given a String S consisting of uppercase and lowercase English alphabets. You need to change the case of each alphabet in this String. That is, all the uppercase letters should be converted to lowercase and all the lowercase letters should be converted to uppercase. You need to then print the resultant String to output.

Input Format
The first and only line of input contains the String S

Output Format
Print the resultant String on a single line.

Constraints
\( 1 \le |S| \le 100 \) where S denotes the length of string S.

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:10
2080 votes
Tags:
Easy
Points:10
750 votes
Tags:
Basic ProgrammingEasyInput/Output
Points:10
455 votes
Tags:
Basic ProgrammingEasyInput/Output