Answer:
while True:
rows = int(input("Enter number of rows: "))
columns = int(input("Enter number of columns: "))
if rows == 0 or columns == 0:
break
else:
for _ in range(rows):
for _ in range(columns):
print("*", end=" ")
print(" ")
Step-by-step explanation:
Create a while loop
Ask the user for the number of rows and columns
Check if rows or columns are equal to zero. If at least one of them is zero, stop the loop.
Otherwise, create a nested for loop that iterates according to the rows and columns and prints "*" blocks