Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <fstream>
- using namespace std;
- void perechi(int n) {
- bool e = false;
- for (int d1 = 1; d1 * d1 <= n; d1++) {
- if (n % d1 == 0) {
- int d2 = n / d1;
- if (d1 % 2 != d2 % 2) {
- e = true;
- cout << '[' << d1 << ' ' << d2 << ']';
- }
- }
- }
- if (!e) {
- cout << "nu exista" << endl;
- }
- }
- int main() {
- //call here
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement