y+=++yy--+--y
When y=8
Answers
Answered by
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
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
Answered by
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
Political Science,
6 months ago
Computer Science,
6 months ago
Science,
6 months ago
Math,
1 year ago
Science,
1 year ago