After the appropriate headings have been displayed, the program calculates the first 10 trian-gular numbers. The variable n is used to count the current number whose sum from 1 to n you are computing, and the variable triangular Number is used to store the value of triangular
number n.