Create a Python program to implement the triangle numbers.
n = 5
def triangle_numbers(n):
    res = 0
    for i in range(n):
        res += i+1
    return res

result = triangle_numbers(n)
print(result) # output: 15