Question: height = int ( input ( ) ) # Read the width of the rectangle from the user width = int ( input ( )

height = int(input())
# Read the width of the rectangle from the user
width = int(input())
# Loop through each row i from 1 to height
for i in range(1, height+1):
# Loop through each column j from 1 to width
for j in range(1, width+1):
# Print an asterisk (*) for each column without moving to the next line
print("*", end='')
# Move to the next line after printing all columns for the current row
print()

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!