Conditional statement - 3#8526

Conditional statement - 3

1 sekunt
128 megabaýt
Örän ýeňil

Find the value of according to the following condition:

y = \begin{cases} x + 5, x < -4 \\ x^2 - 3x, -4 \le x \le 7 \\ x^3 + 2x, x > 7 \end{cases}

Giriş

One integer x~(-100 \le x \le 100).

Çykyş

Print the value of according to the conditional statement above.

Mysallar

1-nji mysal

Loading
Loading

2-nji mysal

Loading
Loading