Question: I am writing a program to get input from the user to make a triangle. However, I now need to make the triangle hollow, so


I am writing a program to get input from the user to make a triangle. However, I now need to make the triangle hollow, so it is just an outline, but I can't figure out how to edit my code to do so.
Here are the original instructions:
"Write a C++ program that gets two inputs an integer and a character. Use repetition control structures better known as "loops" to output an outline of a triangle shape composed of the character and the width specified by the integer. If the input is an even number, it should be increased to the next odd number."
Above is my code so far, which is just printing a solid triangle:
Can you help me edit this so that the triangle is hollow inside?
#include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
