Python program to display stars in right angled triangular form using nested for loops

 Question : Write a python program to display stars in right angled triangular form using nested for loops.

 r= int(input("Please enter  the rows  : "))
print("Program is constructed under Knowledge Hub ..")
for i in range(1, r + 1):
    for j in range(1, i + 1):
        print('*', end = '  ')
    print()

Output: 

Popular posts from this blog

Python Programming Practical no 1

Python Progrmming Practical No 3