不会的看我!!!
2023-12-30 09:50:47
发布于:广东
39阅读
0回复
0点赞
#include <bits/stdc++.h>
using namespace std;
int main()
{
int a,b;
cin>>a;
if(a%3 == 0) cout<<"3"<<" ";
if(a%5 == 0) cout<<"5"<<" ";
if(a%7 == 0) cout<<"7"<<" ";
else if(a%7 != 0 and a%5 != 0 and a%3 != 0) cout<<"n";
return 0;
}
这里空空如也
有帮助,赞一个