title: Is there anything wrong with using an empty for loop?
body: <p>It was a little while since I last programmed and I have seem to forgotten if it's acceptable to use an empty "for loop" for creating an infinite loop?</p>
  
  <pre><code>for(;;)
  </code></pre>
  
  <p>Currently I use this method in a program to make it repeatedly ask the user to enter two numeric values one for each double variable in the program. The programs then calls a function and calculates a sum of these two pairs of numbers.</p>
  
  <p>To terminate the program i have "if" statements that check if the user input value is zero, If the value is zero the program terminates using an "Return 0;" argument.</p>
  
  <p>The program checks each user input value if it's zero directly after the value has been assigned to the variable.</p>
  
  <hr>
  
  <p>So to the real question: Is this a correct way to make my program do what i described? Or is there a more/better/accepted way of programming this?</p>
  
  <p>And secondly is there anything wrong with use the "Return 0" argument the way i did in this program?</p>
  
  <p>If you thinks it's hard to understand what I'll wrote or meant please reply, and I will take more time to write everything.</p>