说错了
你3,5,7依次判断就行
例如:
```cpp
#include <iostream>
using namespace std;
int main()
{
int a;
cin>>a;
if(a%3==0)
cout<<3<<" ";
if(a%5==0)
cout<<5<<" ";
if(a%7==0)
cout<<7<<" ";
if(a%3!=0&&a%5!=0&&a%7!=0)
cout<<"n"<<endl;
return 0;
}
```
by HuangBarry @ 2024-05-12 14:52:53
好的感谢。
by WEICY123 @ 2024-05-12 15:22:47