Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void generatoare(int n) {
- int a, b;
- for (int a = 2; a <= n; a += 2) {
- int b = 1;
- while (a * b + a / b < n) {
- b++;
- }
- if (a * b + a / b == n) {
- cout << a << '-' << b << ' ';
- }
- }
- }
- int main() {
- //call here
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement