- 1

How to make program of pramide

Can any one solve by nexted loop

21st Feb 2022, 11:58 AM
Ranjna Gupta
1 Resposta
+ 3
rows = 8 k = 2 * rows - 2 for i in range(0, rows): for j in range(0, k): print(end=" ") k = k - 1 for j in range(0, i + 1): print("* ", end="") print("")
21st Feb 2022, 1:19 PM
Pallavi Bhardwaj
Pallavi Bhardwaj - avatar