Объяснение:
#include <iostream>
using namespace std;
int main()
{
int x, y;
cout << "x= "; cin >> x;
cout << "y= "; cin >> y;
if (pow(x,2)+pow(y,2)==4) cout << "Yes" << endl; //x*x+y*y=4;
else cout << "No" <<endl;
system("pause");
return 0;
}
Объяснение:
#include <iostream>
using namespace std;
int main()
{
int x, y;
cout << "x= "; cin >> x;
cout << "y= "; cin >> y;
if (pow(x,2)+pow(y,2)==4) cout << "Yes" << endl; //x*x+y*y=4;
else cout << "No" <<endl;
system("pause");
return 0;
}