Would prefer to use an equality test (cont'd)

(Display Listing 1.)

To overcome this problem, the conditional clauses in the if statements in Listing 1 test the value of index