Zadatak70.

#include <iostream>

using namespace std;

int main()
{
int a,b,c,br=0;
cin>>c;
for(b=1;b<c;b++)
{for(a=1;a<c;a++)
if(a*a+b*b==c*c)
{
cout<<a<<“ „<<b<<endl;
br=br+1;
}}
if(br==0)cout<<„nema takvih“<<endl;
return 0;
}

Advertisements