Входные данные одни на все
#include <iostream>
#include <cmath>
using namespace std;
int main() {
float x, y;
cin >> x >> y;
cout << "a) " << (abs(x) - abs(y)) / (1 + abs(x*y)) << endl;
cout << "b) " << sqrt(pow(x, 2) + pow(y, 2)) / (x*y) << endl;
cout << "c)" << (x - y) / (abs(x) - abs(y)) << endl;
cout << "d)" << sqrt(abs(x) + abs(y)) / sqrt(pow(x, 2) + 1) << endl;
return 0;
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Входные данные одни на все
#include <iostream>
#include <cmath>
using namespace std;
int main() {
float x, y;
cin >> x >> y;
cout << "a) " << (abs(x) - abs(y)) / (1 + abs(x*y)) << endl;
cout << "b) " << sqrt(pow(x, 2) + pow(y, 2)) / (x*y) << endl;
cout << "c)" << (x - y) / (abs(x) - abs(y)) << endl;
cout << "d)" << sqrt(abs(x) + abs(y)) / sqrt(pow(x, 2) + 1) << endl;
return 0;
}