title: boolean variables for loops vs conditions
body: <p>Here is my code:</p>
  
  <pre><code>int main()
  {
  int input;
  bool isZero = false;
  
  while (!isZero)
  {
       ...
  
      if (0 == input)
      {
          isZero = true;
      }
  
      else
      {
          isZero = false;
      }
  
  }
  
  return 0;
  }
  </code></pre>
  
  <p>the program does what its supposed to, but I feel like the !isZero expression is not foolproof. </p>
  
  <p>is</p>
  
  <pre><code>bool isZero = false;
  while(!isZero);
  {
     ....
  }
  </code></pre>
  
  <p>the same thing as</p>
  
  <pre><code>bool isZero = false;
  while(isZero == false)
  { 
      ...
  }
  </code></pre>
  
  <p>why or why not?
  Also, in which cases does true represent 1, and in which cases does it represent any nonzero number?</p>