Algorithm to find the list of all the exact divisors of a given integer
===

I want to find all the exact divisors of a number
Currently i have this :
    
    {
       int n;
       int i=2;
       scanf("%d",&n);
       while(i<n/2)
        {
            if(n%i==0)
                      printf("%d,",i);
            i++;
         }
       getch();
    }
is there any way to improve it 
??

   


