(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
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