#include
int main()
{int i,n;
scanf("%d",&n);
for(i=2;i<=n;i++)
while(n%i==0)
{printf("%d ",i);
n/=i;
}
return 0;
}
#include
int main()
{
int m;
scanf ("%d",&m);
for (int i=2;i
printf ("%d、",i);
m=m/i;
i--;
}
}
printf ("%d",m);
return 0;
}//不妨复制粘贴一试,不懂之处可以再探讨,望采纳
#include
using namespace std;
int main()
{
int n;
cin >> n;
for (int i = 2; i <= n; i++)
{
while (n%i == 0)
{
cout << i << " ";
n = n / i;
}
}
}