#include <iostream>
using namespace std;

int main() {
    double x, y;

    cout << "Введите x: ";
    cin >> x;

    if (x < -5)
        y = x + 1;
    else if (x < 3)          
        y = 3 * x + 2;
    else                     
        y = 10 * x;

    cout << "Y = " << y << endl;    //При x = 10
    return 0;
}

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: