title: How expensive are for and while loops?
body: <p>The question is asking for a comparison between costs of <code>for</code> and <code>while</code> loops, relative to the cost of <code>if</code> statements.</p>
  
  <p>Say an if statement has a relative cost of 1, what's the relative cost of for and while loops?</p>
  
  <p>Assume that a single boolean value is being passed onto the <code>while</code> loop and <code>if</code> statement when comparing and the <code>while</code> is allowed to iterate X times. Assume that the <code>for</code> also iterates X number times.</p>