Home Article Practice c++

c++

2022-08-27 20:19  views:590  source:小键人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;
}



Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.

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