#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;
}
All Programming Codes, Tech News, Latest Technologies, How-to-Tips. Programming Codex is Solutions for Smart Programmer.
#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;
}