Using while with a Counter

Oct 06, 2009 Author: strumica
A counter is used to associate a number with each execution of a loop. Mostof the time, this number simply increments from 0 or 1 to higher valuesuntil the loop finishes.