Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started