Untitled

 avatar
unknown
plain_text
a month ago
598 B
3
Indexable
#include <iostream>
#include <algorithm>  
#include <locale>     

using namespace std;

double mx(double x, double y) {
    if (x > y) {
        return x;  
    }
    else {
        return y;  
    }
}

int main() {
    setlocale(LC_ALL, "ru");

    double a, b, c;
    cout << "Ââåäèòå çíà÷åíèÿ a, b, c: ";
    cin >> a >> b >> c;

    double numerator = mx(a, a + b) + mx(a, b + c);
    double denominator = 1.0 + mx(a + b * c, 1.15);

    double answer = numerator / denominator;
    cout << "Ðåçóëüòàò: " << answer << endl;

    return 0;
}
Editor is loading...
Leave a Comment