title: Why does the compiler not show an error when we try to divide a variable by zero
body: <p>If we try to run this code:</p>
  
  <pre><code>int d = 10/0;
  </code></pre>
  
  <p>We get a compiler error. So we cannot divide by zero.</p>
  
  <p>Now consider this code:</p>
  
  <pre><code>  int d = 10;
    int o = d / 0;
  </code></pre>
  
  <p><strong>d can have anything and dividing anything by zero is not ok</strong></p>
  
  <p>We don't get a compiler error. The variable has anything we cannot divide by zero. Why does the compiler not give an error when we try to divide a variable by zero?</p>