row=int(input("enter the rows"))

for i in range (row,0,-1):
    for j in range(0,i):
        print("*",end=' ')
    print ("\n")
    
    
    
    
    
    
O/P:

enter the rows5
* * * * * 

* * * * 

* * * 

* * 

* 
