WAP in java to calculate the value of this statement x* = y + 5 if x = 2 and y = 2?
Answers
Answered by
1
Output:
14
Explanation:
> x *= y + 5
> x *= 2 + 5
> x *= 7
> x = x * 7
> x = 2 * 7
> x = 14
Answered by
1
ANSWER: x= 14
EXPLANATION:
x*=y+5;
x=2*(2+5);
x=2*7;
x=14.
YOU CAN RUN THE PROGRAM IN ONLINE JAVA COMPILER...
HOPE IT WILL HELP :-)
Attachments:
Similar questions