When is while loop more appropriate than for loop?:

Ads by google

When is while loop more appropriate than for loop?:

The program will be executed at least once

The number of iterations is known in advance

The terminating condition occurs unexpectedly.

The body of the loop should be executed at least once