Question #142514

what is the value of y according to the following code

int x= 10, y

x= 2*3

y=x-x/2


Expert's answer

x = 2*3 = 6;

y = x - x/2 = 6 - 6/2 = 6 - 3 = 3;

Answer: y = 3


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS