Computer Science, asked by akshitsharma1408200, 1 year ago

(b) Write the output for the following code in python:
x=10
y = 20
if (x > y):
print x + y
else:
print x - y​

Answers

Answered by sdnt12997roopamkvbsf
3

Answer:

-10

Explanation:

as x is not greater than y

so, the second condition is run where x-y

10-20=-10

Similar questions