Computer Science, asked by kapilsaini95, 6 months ago

27. a = 200
b = 33
if b> a:
print("b is greater than a")
elit a == b
print("a and b are equal")
else:
print("a is greater than b").
in computer​

Answers

Answered by BrainlyProgrammer
2

Question:-To find the output of the following snippet.

a = 200

b = 33

if b> a:

print("b is greater than a")

elif a == b

print("a and b are equal")

else:

print("a is greater than b")

_____________________

Output:-

  • a is greater than b

_____________________

Explaination:-

  • condition 1:- b>a......false....33 is not greater than 200
  • condition 2:- a==b....false....33 is not equal to 200
  • so it will execute else statement...hence it will print "a is greater than b".

_____________________

Similar questions