Computer Science, asked by kavitajaymothsara, 10 months ago

find the output of the following code: x=3 y=x+2 x+=y print(x,y)​

Answers

Answered by TheArkhamKnight
11

Answer:

8, 5

Explanation:

We start off knowing that x=3. We are then told that y=x+2, so 5. We then add y to x, so x now equals 8. We then print x(8), and y(5).

Answered by prashant04112001
2

Answer: x=8, y=5

Explanation: x=3, y=x+2 = 5

X+=y = x=x+y i.e 3+5=8

So x =8 and y = 5

Similar questions