Monday, October 12, 2015

C Program to Find Exact Divisor of Given Number


#include<stdio.h>
int main(){int n;
   int i=2;
   scanf("%d",&n);
   while(i<=n/2)
    {
        if(n%i==0)
                  printf("%d,",i);
        i++;
     }
   return 0;
}

No comments:

Post a Comment