Answers for "deeply nested loops"

0

deeply nested loops

n=int(input("enter size : "))
for row in range(0,n):
    for col in range(0,n):
        if row == 0 or col == 0 or row==n-col-1:
            print("*", end="")
        else:
            print(end=" ")
    print()
Posted by: Guest on September-23-2021
0

deeply nested loops

enter size : 6
******
*   *
*  *
* *
**
*
Posted by: Guest on September-23-2021

Browse Popular Code Answers by Language