+ 2
Help me to understand task (Secret Message)
You are trying to send a secret message, and you've decided to encode it by replacing every letter in your message with its corresponding letter in a backwards version of the alphabet. What do your messages look like? Task: Create a program that replaces each letter in a message with its corresponding letter in a backwards version of the English alphabet. Input Format: A string of your message in its normal form. Output Format: A string of your message once you have encoded it (all lower case). Sample Input: Hello World Sample Output: svool dliow Can anyone describe what does the task mean with corresponding?
3 Answers
+ 5
The task is to replace every letter of the given string to a letter which will on same position if we read alphabets in reverse order.
Means :-
A will become Z
B will become Y
C will become X
.
.
.
And so on.
+ 5
Here I will you give some hints first you should make your input small then see what happening in input - output
h - s
e - v
l - o
l - o
Then you see here some logic like a-z ,b-y,c-z ...z-a.
+ 4
☺️ Thank you very much everyone for help me to understand