Write a program that evaluates the function
z(t)
when x changes from
4
to
28
in increments of 1.
\(z = 2t^2 - 5.5t - 2\), when
\(t = x+2\ ).
Input
You don't need to enter anything from the keyboard.
Imprint
You need to output
z(t)
values for all
x
values. One pair (
x
,
z
) per line. See the example for output format.
Examples
# |
Input |
Output |
1 |
|
x=4 z=37.0
x=5 z=57.5
...
x=27 z=1520.5
x=28 z=1633.0
|