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:
Enter width :
##############################
##############################
##############################
##############################
##############################
##############################
##############################
##############################
##############################
##############################
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
