title: Product in java, does not give me the expected result
body: <p>good afternoon, I am solving exercises and I ran into a problem, this is the statement: </p>
  
  <p>Write a program that prints the product of all integer numbers from a to b ( a &lt; b).
  Include a and exclude b from the product.</p>
  
  <p>And my code is like this</p>
  
  <pre><code>        int a = in.nextInt(), b = in.nextInt();
      long result = a;
      for (long i = a; i &lt; b; i++) {
          result *= i  ;
      }
      System.out.println(result);
  </code></pre>
  
  <p>It tells me that it does not work since when trying that of these values:
  Sample Input:</p>
  
  <p>1 2</p>
  
  <p>Sample Output:</p>
  
  <p>1</p>
  
  <p>Sample Input:</p>
  
  <p>100 105</p>
  
  <p>Sample Output:</p>
  
  <p>11035502400</p>
  
  <p>The first one works perfectly, but the second one prints me 1103550240000</p>
  
  <p>I appreciate your help and your time;).</p>