title: Integer division always zero
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/8906722/c-programming-division">C programming division</a>  </p>
  </blockquote>
  
  
  
  <p>probably my question is very simple and stupid.
  I would like to store the value of a division, in particular <code>1 / x</code> where <code>x</code> is a
  integer value.</p>
  
  <pre><code>int x = 17;
  double result = 1/x;
  </code></pre>
  
  <p>I try to do it but I always get <code>0.000000 ...</code> I try to enter a value fixed in x, for example <code>1/17</code> but always get the same value .. what's Wrong?</p>