in reply to To end infinite while loop

Write loop counters into suspected while loops, and compare it with value, which would not be achieved.