Question: Use a for loop to print an upside down triangle like the one below. Allow the user to specify how high the triangle should be
Use a for loop to print an upside down triangle like the one below. Allow the user to specify how high the triangle should be in other words, ask the user to input a number n The number of lines containing stars will be equal to n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
