Printing the Top and Bottom Rows

From the examples we can see that the sunglasses can be divided into three parts – upper, middle and lower. A part of the code with which the problem can be solved is given below.

When drawing the upper and lower rows we need to print 2 * n stars, n white spaces and 2 * n stars.

results matching ""

    No results matching ""