Question: Write a program (C++) to produce an upside down triangle similar to the output shown below. Your program should ask the user to enter the
Write a program (C++) to produce an upside down triangle similar to the output shown below. Your program should ask the user to enter the height of the triangle anywhere from 1 to 25, and prevent the user from entering a height any larger than 25.
****** ***** **** *** ** *
Can you tell me what I did wrong in the screenshot?
I am having trouble creating a line of code that allows an input and directly affects the number of stars in the upside down triangle.
Please explain, thanks!

7 11 9 #include
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
