Menu

[Solved]Double Variables X 25 Y 40 Value Z Statement Executed Int Z Int X Int Y 65 B 60 C 6 D 7 Q37043188

If the double variables x = 2.5 and y = 4.0, what is the valueof z after this statement is executed?
int z = (int) x + (int) y;

a.

6.5

b.

6.0

c.

6

d.

7

Expert Answer


Answer to If the double variables x = 2.5 and y = 4.0, what is the value of z after this statement is executed? int z = (int) x + … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *