Question: Write a program that prints the shape of a rectangle. The prompt prompts the user for the height and the width. Hint: you will need

Write a program that prints the shape of a rectangle. The prompt prompts the user for the height and the width.
Hint: you will need nested loops to do this. The inner loop prints one row (width) and the outer loop control the numbers of rows (height) to print.
Sample run:
Draw Rectangle
Enter height: 10
Enter width : 30
##############################
##############################
##############################
##############################
##############################
##############################
##############################
##############################
##############################
##############################

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!