Zadatak16-15

#include <iostream>

using namespace std;

int main()
{
int i,j,a;

cin>>a;
for(i=1;i<=a;i++)
{for(j=i;j<=a;j++)
if((i*j)+(i+j)==a)
cout<<i<<“ „<<j<<“ „<<endl;}
return 0;
}

Advertisements