We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
select
case when a.A = b.A and a.A = b.B and a.A = b.C then 'Equilateral'
when a.A = b.A and a.A = b.B and a.A <> b.C then 'Isoceles'
when a.A <> b.B and a.B <> b.C and a.A <> b.C and (a.A + b.B) > b.C then 'Scalene'
else 'Not A triangle' end as "Triangle Type"
from triangles a, triangles b;
Cookie support is required to access HackerRank
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 →
what is wrong in the below ?