
Question:
Write nested loops to print a rectangle. Sample output for given program:
* * *
* * *
num_rows = 2
num_cols = 3
for i in range(num_rows):
for j in range(num_cols):
print('*', end=' ')
print('')

* * *
* * *
num_rows = 2
num_cols = 3
for i in range(num_rows):
for j in range(num_cols):
print('*', end=' ')
print('')
im glad I found your website, please continue to put up more... thank you!!
ReplyDelete