title: Why does Java think that the product of all numbers from 10 to 99 is 0?
body: <p>The following block of codes gives the output as 0.</p>
  <pre><code>public class HelloWorld{
  
      public static void main(String []args){
          int product = 1;
          for (int i = 10; i &lt;= 99; i++) {
              product *= i;
          }
          System.out.println(product);
      }
  }
  </code></pre>
  <p>Please can somebody explain why this happens?</p>