title: Result of integer division (1/n) always rounded down to 0.000
body: <p>I have written a simple program, that reads one integer <code>number</code> and prints: <code>1 / number</code>.</p>
  
  <p>I do not understand why the output is always: <code>0.000</code>.</p>
  
  <pre><code>void main()
  {
      int n = 0;
      scanf("%d",&amp;n);
  
      float f = 1 / n;
      printf("%f",f);
  }
  </code></pre>