e-olymp
Competitions

Quick Start C: Loops, Arrays, Functions

Function - 1

Implement a function f(x) = x3 + 2 *x2 - 3.

Input

Each line contains one real number x.

Output

For each value x print in a separate line the value of the function f(x) with four digits after the decimal point.

Time limit 1 second
Memory limit 128 MiB
Input example #1
2.234
1
56
23.2
Output example #1
18.1309
0.0000
181885.0000
13560.6480
Author Mykhailo Medvediev
Source Programming language C