Two integers are entered from the keyboard: first
x
, then
y
(both numbers are not greater than 1000).
Write a program to calculate the values of
z
and
q
using formulas.
\(z = \frac {x + \frac {2+y} {x^2}} {y+ \frac 1 {\sqrt{x^2+10}}}\) and \(q = 2.8 \cdot sin(x) + \vert y \vert\)
Input
The input is 2 integers
x
and
y
(both numbers modulo no more than 1000).
Imprint
Display the
z
and
q
values, as
z=value
q=value
Examples
# |
Input |
Output |
1 |
5 3 |
z=1.64088
q=0.315012 |