Do while loop in java
<p>Given the following segment of code with a do while loop:</p>

<pre><code>int x = 11, y = 34, z = 14, limit;

do {
      y + = z;
      z++;
      x++;
} while (x &lt; limit);

System.out.println("x=" + x  + " y=" + y + " z=" + z);
</code></pre>

<ol>
<li><p>What would be the output if limit is 15?                 </p></li>
<li><p>Write a segment of code using a for loop that does EXACTLY the same thing no matter what value limit has.        </p></li>
</ol>

<p>I'm not entirely sure why the quotations in the <code>system.out</code> is like that. </p>

<p>Any help is appreciated                         </p>
