def floyd(n):
    for i in range(0, n):
        for _ in range(0, n - i - 1):  # printing spaces
            print(" ", end="")
        for _ in range(0, i + 1):  # printing stars
            print("* ", end="")
        print()