Question: C++ is the language Write a program that reads a lower-case letter inLetter, and prints a shape of an isoscel triangle. The first line of

C++ is the language
Write a program that reads a lower-case letter inLetter, and prints a shape of an isoscel triangle. The first line of the triangle should have the letter a, the second line of the triar should have the letter b, the third line of the triangle should have the letter c, ..., the las line of the triangle should have the letter inLetter. In addition, the casing of the letters should alternate between lines. That is, in the first the 'a' should be lower case. In the second line, all 'b's should be upper case. In the thi line, all the 'c's should be lower case, etc. Your program should interact with the user exactly as it shows in the following two executions: Execution example 1: Please enter a lower-case letter: e a BBB CCCCC DDDDDDD eeeeeeeee Execution example 2: Please enter a lower-case letter: d a BBB CCCCC DDDDDDD
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
