What are some good uses of the while statement?
<p>Whenever I think of using the <code>while loop</code>, I don't see why I can't just use an <code>if statement</code> instead. I know that a while loop runs 'while' a given statement is true, but if the condition is terminated inside the block instantaneously, then I cannot visualize anything happening 'while' something is true. If anyone can give me examples of how/why I should use a <code>while loop</code>. It would be very appreciated.</p>
