Computer Science, asked by Anonymous, 8 months ago

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 Bᴇʏᴏɴᴅᴇʀ
32

ANSWER:-

\pink{\bigstar} Value of the given expression \large\leadsto\boxed{\tt\purple{48}}

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)

\large{\bf\red{48}}

_________________________________________

Additional Information:-

[ / ] symbol gives the quotient.

[ % ] symbol gives the remainder.

Answered by anindyaadhikari13
2

\star\:\:\:\sf\large\underline\blue{Question:-}

  • Evaluate the following expression in Java.

\star\:\:\:\sf\large\underline\blue{Steps:-}

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

\star\:\:\:\sf\large\underline\blue{Result:-}

  • The value of a is 48 and that of b is 9.
Similar questions