Files
python/TangDou/DianZiXieHuiLevel1/5.cpp

25 lines
410 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <bits/stdc++.h>
using namespace std;
int main() {
int a;
cin >> a;
bool f = false;
if (a % 3 == 0) {
cout << 3 << " ";
f = true;
}
if (a % 5 == 0) {
cout << 5 << " ";
f = true;
}
if (a % 7 == 0) {
cout << 7 << " ";
f = true;
}
if (!f) {
cout << "n" << endl;
}
return 0;
}