I am writing a program using for loops and outputting the number of iterations in each loop. However, my program is outputting a line for every iteration of the loop, not just the total number of iterations.
Is there a way to count the number of iterations of a loop and output that total?
Attached is the program.
Brian