Please solve it
these are java mathematical expression
(not in mood to co-operate so please don't give silly answers)
Attachments:
Answers
Answered by
32
ANSWER:-
Value of the given expression
• Given:-
- a = 12
- b = 8
• Solution:-
➪ a* = ++a / 6 + b ++ % 3
• Method:-
✯ Substituting the value of a and b:-
➪ 12* = 13 / 6 + 8 % 3
➪ 12*( 13 / 6 + 8 % 3 )
➪ 12* ( 2 + 2)
➪ 12 * ( 4)
★
_________________________________________
Additional Information:-
• [ / ] symbol gives the quotient.
• [ % ] symbol gives the remainder.
Answered by
2
- Evaluate the following expression in Java.
Given,
a=12,b=8;
Now,
a*=++a/6 + b++%3;
Or,
a=12*(13/6 + 8%3)
Or,
a=12*(2+2)
Or,
a=12*4
Or,
a=48
Now, b=9
- The value of a is 48 and that of b is 9.
Similar questions