• + 0 comments

    In Python:

    def staircase(n):
        base = n
        spaces = (base - 1)
        for b in range(1,base+1):
            print(' '*spaces +'#'*b)
            spaces -= 1