C++ Letter to password

lynxAi

Member
Joined
Dec 7, 2019
Messages
10
Location
SiChuan China
Programming Experience
Beginner
To translate "China" into a password, the decoding rule is: replace the original letter with the fourth letter after the original letter. For example, the fourth letter after the letter "a" is "e". Replace "a" with "e". Therefore, "China" should be translated as "glmre". Please write a program to assign the initial values of five variables Cl, C2, C3, C4 and C5 as, 'C', 'H', 'I', 'n' and 'a'. After operation, C1, C2, C3, C4 and C5 are changed into 'g', 'l', 'm', 'R' and 'e' respectively and output.
 

jmcilhinney

C# Forum Moderator
Staff member
Joined
Apr 23, 2011
Messages
3,052
Location
Sydney, Australia
Programming Experience
10+
Please do your own homework and, when you encounter an actual issue, post back and show us what you have done and explain where you are stuck. That said, this is a C# site exclusively so if your question is about C++ then it is not valid here.
 
Top Bottom