Looping ,,why this code is not working | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Looping ,,why this code is not working

#basic examples of looping #printing patern of triangle print("no. of rows of triangle you want") n=int(input()) for i in range(1,n+1): for j in range(1,i+1): print("*",end="") print("")

11th Dec 2019, 11:37 AM
KANHAIYA GAVIT
KANHAIYA GAVIT - avatar
1 Answer
+ 1
Should look like this: for i in range(1,n+1): for j in range(1,i+1): print("*",end="") print("") https://code.sololearn.com/cT5BRIbkia21/?ref=app
11th Dec 2019, 11:39 AM
HonFu
HonFu - avatar