Java Software Solutions >EX2.6 > Solution

Problem:

What value is contained in the integer variable size after the following statements are executed?
size = 18;
size = size + 12;
size = size * 2;
size = size / 4;

Output:

Not Applicable

Solution:

The final value stored in size is 15.

No comments:

Post a Comment