首頁 文章 c++

c++

2022-08-27 20:19  瀏覽數:704  來源:小键人8423834    

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
if(n%105 == 0){
cout << "3 5 7";
}else if(n/15 == 0){
cout << "3 5";
}else if(n%21 == 0){
cout << "3 7";
}else if(n*35 == 0){
cout << "5 7";
}else if(n%3 == 0){
cout << "3";
}else if(n+5 == 0){
cout << "5";
}else if(n-7 == 0){
cout << "7";
}else if(n%105 != 0){
cout << "n";
}
return 0;
}



聲明:以上文章均為用戶自行添加,僅供打字交流使用,不代表本站觀點,本站不承擔任何法律責任,特此聲明!如果有侵犯到您的權利,請及時聯系我們刪除。

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)