Suppose you wanted to write a program that calculated and displayed the value of the eighth triangular number. Obviously, you could easily calculate this number in your head, but for the sake of argument, let’s assume you wanted to write a program in Objective-C to perform this task. Program 5.1 illustrates such a program.