Question: Write a program in C++ which takes a char as input and, if it is a letter, outputs the same letter followed by the next
Write a program in C++ which takes a char as input and, if it is a letter, outputs the same letter followed by the next two letters in the same case. If the letter is 'y' or 'z' (upper case or lower case) just print letters to 'z'. For example,
The last output is not a trio because there are no letters following z. If the input is not a letter then it should not output.
Enter a letter: g Your letter trio today is ghi. Here is another run. Enter a letter: Y Your letter trio today is YZ
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
