#C14584. Shift Characters
Shift Characters
Shift Characters
You are given a string s
that may contain alphabetic characters, digits, spaces, and punctuation. Your task is to shift every alphabetic character in s
to the next character in the English alphabet. Specifically, 'z' should wrap around to 'a' and likewise, 'Z' should wrap around to 'A'. Non-alphabetic characters should remain unchanged.
Note: All input is read from stdin
and output should be written to stdout
.
Example
Input: Zoo Keeper! Output: App Lffqfs!
inputFormat
The input consists of a single line string s
which may include spaces, digits, special symbols and alphabetic characters.
Read the input from stdin
.
outputFormat
Output a single line string which is the result of shifting every alphabetic character in the input string to the next character in the alphabet with wrap-around for 'z'/ 'Z'.
Write the output to stdout
.
Zoo Keeper!
App Lffqfs!