Given the following declarations, what is the result of each of the expressions?
double w = 12.9, y = 3.2;
double z = 12.2
a.w / z
b.z / w
c. w / z - y
d. w – z*y
e. (w – z) * y
f. z / y / w
g. z / (y / w)
h. y % z
a.1.057
b. 0.9457
c. -2.143
d. -26.14
e. 2.24
f. 0.2955
g. 49.18125
h. 3.2
Comments
Leave a comment