All i need this to do now is to print out all the factors of the highest number and not include the highest number itself.
Been messing for a while but can't seem to quite get it right.
Any help would be appreciated
Thank you...
Here is my code
#include <stdio.h>
int main(void)
{
int x,y,count=0,i,n;
for (x=2;x<=1000;++x)
{
i=0;
for (y=2;y<=1000;++y)
if (!(x%y)) ++i;
if (i>count) {n=x;count=i;}
}
printf("The integer %d has the most number of factors <=1000\n\n\n",n);
printf("There are %d factors\n\n\n",count);
printf("They are.................\n\n\n");
return 0;