验证中...
Languages: C
Categories: 其他
Latest update 2019-08-13 19:19
gistfile1.txt
Raw Copy
#include <stdio.h>
int main()
{
long n;
scanf("%ld",&n);
for(int i=2;n!=1;)
{
if(n%i!=0)
{
i++;
}
if(n%i==0)
{
n=n/i;
printf("%d ",i);
}
}
}

Comment list( 0 )

You need to Sign in for post a comment

Help Search