n=int(input()) k=0 for i in range(1,n+1): for j in range(1,(n-i)+1): print(end=" ") while(k != 2*i-1): print("*",end="") k+=1 k=0 print()
To embed this program on your website, copy the following code and paste it into your website's HTML: