Computer Science, asked by legend070, 4 months ago

If given A=20, B=15, C=30, What will be the output of following expression: print((A>B) and (B>C) or (C>A))​

Answers

Answered by PritishKantiDatta
12

Answer:

A>B is right according to the "given"

B>C is wrong according to the "given" because 15<30

C>A is right according to the "given"

Please mark me as brainliest and hope it helps

Answered by krishnaanandsynergy
6

The output of the expression print((A>B) and (B>C) or (C>A))​ will be True.

Explanation:

Given:-

A=20,  B=15,  C=30

To find:-

The output of the expression: print((A>B) and (B>C) or (C>A))​

  • The line A > B will give the output as True.
  • The line B > C will give the output as False
  • Since these both lines are connected by the operator and it will make the whole output false.
  • The next line C > A will give True
  • since these both lines are connected by an or it will make the output as True.
Similar questions