求代码
1 回答
狼顾之相1995
TA贡献81条经验 获得超22个赞
include<);%d"
printf("
while(n%i>, &n);
n/;
i=2;1){
if(n%i==0){
if(c>0)
printf("
return 0;
using namespace std;x"
} else
i++;
c++;
printf(";%d="
int main()
{
int n;=i;0)
printf("
}
if(c>%d", i),i=2;i>, c=0, i), n);x");
scanf("
printf(";0 || n/%d"stdio.h>
解决方案2:
if(temp == 1) break; i <#include<< num < i++){
if(temp % i == 0) {
temp = temp /
cout <);
}
}
system(";< "<
using namespace std; "pause" = " i; i;;
int main() {
int num;
cout <
for(int i = 2;
cout <
i = 2;*" num;
cin >>
int temp = num;
return 0;<= temp;iostream>
- 1 回答
- 1 关注
- 2228 浏览
添加回答
举报
0/150
提交
取消