Replacing for with while loop.

Printable View