Answer to Question #333545 in Python for Deepika

Question #333545

Right angle triangle given an knteger n write a program to print a right angle triangle pattern|___

1
Expert's answer
2022-04-26T09:27:28-0400
n = int(input("Enter n: "))
for i in range(0 , n):
    for j in range(0, i + 1):
        print("x", end=" ")
    print("\r")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS