Question: 5 . ( 2 0 points ) The program asks the user to enter M , which is the height and width of the pattern

5.(20 points) The program asks the user to enter M, which is the height and width of the pattern below. It is a shape that is composed of * and - characters. Draw this shape whose height and width are variable and subject to change depending on the user input. You should use for loop(s) to get a valid mark.

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 Programming Questions!