Print Right Agngle Triangle Pattern Using For Loop by taking User Input ...

PHOTO EMBED

Wed Nov 09 2022 17:54:41 GMT+0000 (Coordinated Universal Time)

Saved by @codewithakash

number = int(input())

for i in range(number):
    for j in range(i + 1):
        print("*", end =" ")
    print()


content_copyCOPY

#here outer loop will be no chnage # nested loop will get increament of 1 in i . (i+1)