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,Write a program in C++ which takes a char as input and,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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!