Below is a triangle number generator. Enter any positive integer n and it will generate the nth triangle number.