10.4k views
3 votes
Write a program that reads in a number n and prints out n rows each containing n star charactersg

User Kavi
by
5.1k points

1 Answer

1 vote

In python:

rows = int(input("How many rows would you like? "))

i = 0

while i < rows:

print("*" * rows)

i += 1

I hope this helps!

User Karel Marik
by
5.8k points