Computer Science, asked by rohit454550, 1 year ago

2. What will be the output produced by following code fragment (s)?
X = 10
X = X + 10
X=X-5
print X
X, Y = X - 2, 22
print X, Y​

Answers

Answered by Ritulshekhar1
34

Answer:

13,22

Explanation:

X=10

X=20

X=15

X,Y=15-2,22

X,Y=13,22

Hope this will help you.

Plz mark it as Brainliest....

Answered by remyanairlm
3

Answer:

The result that gets printed is 15 13, 22.

Explanation:

Here, the given program is:

X = 10

X = X + 10

X = X-5

print X

X, Y = X - 2, 22

print X, Y​

After execution, the result that gets printed is 15 13, 22.

Hence, the final output is 15 13, 22.

Similar questions