You are viewing a single comment's thread. Return to all comments →

Why does not A = B = C work for Equilateral? Whats the difference between A = B and B = C?

when A=B=C execute then if A=B then it return boolean value if true then 1 else 0 then it compare 1=c

e.g. (10,10,10)

when execute A=B=C then (10=10)=10 take as (10=10) return 1 because its true then in next stape it compare 1=10 in next step and return false

This explanation is not true. counter example: ((A=B)=(B=C)) doesnt work. step 1: ((A=B)=(B=C)) -> (1) = (B=C) step 2: ((1) = (B=C)) -> (1) = (1) step 3: (1) = (1) -> 1 But doesnt work

this is simple math logic if A=B and B=C it means A=C....

operator overlosding dont work here

## Type of Triangle

You are viewing a single comment's thread. Return to all comments →

Why does not A = B = C work for Equilateral? Whats the difference between A = B and B = C?

when A=B=C execute then if A=B then it return boolean value if true then 1 else 0 then it compare 1=c

e.g. (10,10,10)

when execute A=B=C then (10=10)=10 take as (10=10) return 1 because its true then in next stape it compare 1=10 in next step and return false

This explanation is not true. counter example: ((A=B)=(B=C)) doesnt work. step 1: ((A=B)=(B=C)) -> (1) = (B=C) step 2: ((1) = (B=C)) -> (1) = (1) step 3: (1) = (1) -> 1 But doesnt work

this is simple math logic if A=B and B=C it means A=C....

operator overlosding dont work here