Conditional statement - 1#8520

Conditional statement - 1

1 sekunda
128 megabajtov
Zelo lahko

Find the value of according to the following condition:

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

Vhod

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

Izhod

Print the value of according to the given condition.

Primeri

Primer 1

Loading
Loading

Primer 2

Loading
Loading