Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "bits/stdc++.h" //универсальная библиотека для GNU-ских компиляторов
- using namespace std;
- int main() {
- setlocale(LC_ALL, "rus");
- string ans = "YES";
- double x, y;
- cout << "Введите х: ";
- cin >> x;
- if (x <= -3)
- y = pow(log(x*x + 1), 3);
- else if (x > 3)
- y = atan(1 / (2*x + 1));
- else
- ans = "NO";
- if (ans == "YES")
- cout << "y = " << y << '\n';
- else
- cout << "x не входит в ОДЗ" << '\n';
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment