fork download
  1. n = int(input())
  2. for i in range(n + 1):
  3. print(' ' * (n + 1 - i) + '*' * i)
Success #stdin #stdout 0.03s 9800KB
stdin
5
stdout
      
     *
    **
   ***
  ****
 *****