#include <stdio.h>
int main(void){
double x, y;
if (x > -21 && x <= 3){
y = -14 * x - 20;
printf("y = (-14 * x) - 20 for x = %lf, result: y = %lf\n", x
, y
);
} else if (x > 12){
y = -14 * x - 20;
printf("y = (-14 * x) - 20 for x = %lf, result: y = %lf\n", x
, y
);
} else if (x < -41){
y = (13 * (x * x)) / 5; // Спрощення виразу
printf("y = 13 * (x * x) / 5 for x = %lf, result: y = %lf\n", x
, y
);
} else {
printf("x = %lf не потрапляє в жоден з визначених діапазонів\n", x
); }
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgppbnQgbWFpbih2b2lkKXsKICAgIGRvdWJsZSB4LCB5OwogICAgcHJpbnRmKCJ4OiAiKTsKICAgIHNjYW5mKCIlbGYiLCAmeCk7CgogICAgaWYgKHggPiAtMjEgJiYgeCA8PSAzKXsKICAgICAgICB5ID0gLTE0ICogeCAtIDIwOwogICAgICAgIHByaW50ZigieSA9ICgtMTQgKiB4KSAtIDIwIGZvciB4ID0gJWxmLCByZXN1bHQ6IHkgPSAlbGZcbiIsIHgsIHkpOwoKICAgIH0gZWxzZSBpZiAoeCA+IDEyKXsKICAgICAgICB5ID0gLTE0ICogeCAtIDIwOwogICAgICAgIHByaW50ZigieSA9ICgtMTQgKiB4KSAtIDIwIGZvciB4ID0gJWxmLCByZXN1bHQ6IHkgPSAlbGZcbiIsIHgsIHkpOwogICAgCiAgICB9IGVsc2UgaWYgKHggPCAtNDEpewogICAgICAgIHkgPSAoMTMgKiAoeCAqIHgpKSAvIDU7IC8vINCh0L/RgNC+0YnQtdC90L3RjyDQstC40YDQsNC30YMKICAgICAgICBwcmludGYoInkgPSAxMyAqICh4ICogeCkgLyA1IGZvciB4ID0gJWxmLCByZXN1bHQ6IHkgPSAlbGZcbiIsIHgsIHkpOwogICAgCiAgICB9IGVsc2UgewogICAgICAgIHByaW50ZigieCA9ICVsZiDQvdC1INC/0L7RgtGA0LDQv9C70Y/RlCDQsiDQttC+0LTQtdC9INC3INCy0LjQt9C90LDRh9C10L3QuNGFINC00ZbQsNC/0LDQt9C+0L3RltCyXG4iLCB4KTsKICAgIH0KCiAgICByZXR1cm4gMDsKfQo=