title: Dividing a number in loop until it satisfies a condition = 0
body: <p>I have to input a value in the program and keep dividing it by 4 until it reaches the number 0.  But when I run it, it doesn't stop at 0, it keeps repeating 0 forever.  What is wrong with the code?</p>
  
  <pre><code>#include &lt;iostream&gt;
  
  using namespace std;
  
  int main(){
      double input;
      cout &lt;&lt; "Enter an Integer: ";
      cin &gt;&gt; input;
      cout &lt;&lt; input &lt;&lt; "/ 4 ";
      do
      {
          input = input / 4;
          if (input &gt;= 0)
              cout &lt;&lt;" = "&lt;&lt; input &lt;&lt; endl;
          cout &lt;&lt;input &lt;&lt; " /4";
      }
      while ((input &gt;= 0) || (input != 0));
      return 0;
  }
  </code></pre>