Computer Science, asked by sarmisthasahoo310, 11 months ago

Predict the output of the following code.
x,y=7,2
x, y, x = x+1, y+3, x+10
Print(x, y )

Answers

Answered by malikjunni294
6

Explanation:

a)x,y,x=8,5,17

b) 5-3+25> 5+3-3×10

2+25>8-30

27>-22

Answered by aburaihana123
7

The output of (x,y) is (17 , 5)

Explanation:

Given: The values(x,y) is (7,2)

To find: The output of  print(x,y)

Solution

  • Assign the values x = 7 and y = 2
  • Given that y+ 3 = 2+3 therefore y is 5
  • Given that  x + 10 = 7 + 10 then the x is   is 17
  • So finally took the x value as 17 and then y value is 5
  • Hence if we print(x,y) then the value will be display as (17,5)

Final answer:

The output of (x,y) is (17 , 5)

#SPJ3

Similar questions