-->
当前位置:首页 > 题库

PROGRAMMING:English letter replacement encryption (case conversion + 1 bit backward)

Luz5年前 (2021-05-10)题库512
This problem requires the preparation of procedures to replace the English alphabet encryption. In order to prevent the information from being stolen easily, it is necessary to transform the plaintext into ciphertext by means of encryption. The transformation rule is: replace all the English letters in the plaintext with the next letter in the alphabet, at the same time, convert the lowercase letters to uppercase letters, and the uppercase letters to lowercase letters. For example, the letters a - > b, B - > C,..., Z - > A, a - > b, B - > C,..., Z - > a. Input a line of characters, and output the English letters according to the above rules, and output other characters as they are.
###Input format:
Enter a line of characters ending with a carriage return '\ n'.
###Output format:
Replace all the English letters in the input line with the next letter in the alphabet, and convert the lowercase letters to uppercase letters. After the uppercase letters are converted to lowercase letters, the output will be done, and other characters will be output as they are.
###Input example:
Here is a set of inputs. For example:
```in
Reold Z123?
```
###Output example:
The corresponding output is given here. For example:
```out
sFPME a123?
```







answer:If there is no answer, please comment