You are viewing a single comment's thread. Return to all comments →
WHEN A = B AND B = C THEN 'Equilateral'
WHEN A = B OR B = C OR A = C THEN 'Isosceles'
Why does not A = B = C work for Equilateral? Whats the difference between A = B and B = C?
execute then if A=B then it return boolean value if true then 1 else 0
then it compare 1=c
when execute A=B=C
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.
((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