You are viewing a single comment's thread. Return to all comments →
select case when a+b<=c or b+c<=a or a+c<=b then 'Not A Triangle' when a=b and b=c and c=a then 'Equilateral' when a=b or b=c or a=c then 'Isosceles'
else 'Scalene' end from TRIANGLES ;
first check for not a triangle condition, it worked for me...
Seems like cookies are disabled on this browser, please enable them to open this website
Type of Triangle
You are viewing a single comment's thread. Return to all comments →
select
case when a+b<=c or b+c<=a or a+c<=b then 'Not A Triangle' when a=b and b=c and c=a then 'Equilateral' when a=b or b=c or a=c then 'Isosceles'
else 'Scalene' end from TRIANGLES ;
first check for not a triangle condition, it worked for me...