Question: In this part of the assignment, you will write a program that, when given a width and a height, will print a rectangle comprised of

In this part of the assignment, you will write a program that, when given a width and a height, will print a rectangle comprised of asterisks (*).
When the program is executed, it will ask the user to enter a width and a height, and it will store them into 2 variables: width and height. This is done for you in the code we have provided at the top of the program (between the two ### DO NOT MODIFY ### comments).
Below the # YOUR CODE HERE comment, you will write the code to print a rectangle with width columns and height rows of asterisks (*).
For example, if you run your program as follows:
Enter width: 5
Enter height: 3
Your program should print the following:
*****
*****
*****

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