Computer Science

Write a program using nested loops to produce a rectangle of *'s with 6 rows and 20 *'s per row.

Python

Python Control Flow

25 Likes

Answer

for i in range(6) :
    for j in range(20) :
        print('*', end = '')
    print()

Output

********************
********************
********************
********************
********************
********************

Answered By

13 Likes


Related Questions