Computer Science, asked by tabhishek423, 1 year ago

y+=++yy--+--y
When y=8

Answers

Answered by Anonymous
146
Heya friend...here's the solution...
y+=++y+ y-- + --y
=>y=y+(++y+y-- + --y)
=>y=8+(9+9+7)
=>y=8+(25)
=>y=33
Well...these questions in JAVA are very
INTERSTING to solve right??
:)
#loveJAVA

tabhishek423: Thanks i am very thankful to you
Anonymous: yours welcome
Anonymous: pls mark it as brainliest! :)
rkburman72: Tnx vry much friend☺
Answered by Agastya0606
3

The value of y+=++yy--+--y when y = 8 is 33.

  • The given expression is y+=++yy--+--y, now the expression x+= x, means that x = x+x. So, the given expression can also be expanded in the same form.
  • The expression becomes y+=++y+ y--+--y. Now, ++y means the value will be incremented and then saved, and y-- means that value will be saved after use.
  • So, we will substitute the value, y=y+(++y+y-- + --y), y=8+(9+9+7), y=8+(25), y=33.

#SPJ3

Similar questions