Ответ:
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double x, y, z, m1, m2, m;
setlocale(LC_ALL, "Russian");
cout << "x, y, z = ";
cin >> x >> y >> z;
m1 = pow(x, 2) + pow(y, 2);
m2 = pow(y, 2) + pow(z, 2);
m = __min(m1, m2) - 4;
cout << "\nРезультат = " << m;
}
Copyright © 2025 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
#include <iostream>
#include <math.h>
using namespace std;
int main()
{
double x, y, z, m1, m2, m;
setlocale(LC_ALL, "Russian");
cout << "x, y, z = ";
cin >> x >> y >> z;
m1 = pow(x, 2) + pow(y, 2);
m2 = pow(y, 2) + pow(z, 2);
m = __min(m1, m2) - 4;
cout << "\nРезультат = " << m;
}