Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "Russian");
- float b;
- float y;
- float x;
- cout << "Введите b" << '\n';
- cin >> b;
- cout << "Введите y" << '\n';
- cin >> y;
- cout << "Введите x" << '\n';
- cin >> x;
- if (b > y && b > x) {
- float z;
- z = log((b - y)) * sqrt(b - x);
- cout << "Итог :" << z << '\n';
- }
- else
- cout << "Повторите попытку";
- }
Add Comment
Please, Sign In to add comment