title: Algorithm to find all the exact divisors of a given integer
body: <p>I want to find all the exact divisors of a number.
  Currently I have this:</p>
  
  <pre><code>{
     int n;
     int i=2;
     scanf("%d",&amp;n);
     while(i&lt;=n/2)
      {
          if(n%i==0)
                    printf("%d,",i);
          i++;
       }
     getch();
  }
  </code></pre>
  
  <p>Is there any way to improve it?</p>