+2

Why it is true instead of false?

https://code.sololearn.com/cWMOQ8Pw5mtx/?ref=app

9/7/2019 9:37:46 AM

Anshika

4 Answers

New Answer

+4

1: (5==2+3)==(2==2) 2: (5==5)==(2==2) 3: (True)==(True) 4: True==True 5: True

+1

Cause a = true and b = true c=true==true is also true

+1

As b is true and a is true both are equal. So c is true.

-1

Advanced users, please correct me if need be...i may be wrong (i probably am) but i think since both variables would result in true since 2+3==5 and 2 does ==2 when you return it, it doesnt do the mathematical function, but returns it in a boolean value.