Răspuns:
#include <iostream>
using namespace std;
void generatoare(int n)
{
int a,b,c=0,i;
for(a=2;a<=n;a+=2)
for(b=1;b<=n;b++)
{
if(a*b+a/b==n)
{cout<<a<<"-"<<b<<" ";
c++;}
}
if(c==0)
cout<<"nu exista";
}
int main()
{
int n;
cin>>n;
generatoare(2);
return 0;
}