Hi, I need to write a program to test the triangle type:
to output either: scalene, isosceles, equilateral
My question is, (I know this is more math but I can't find answer anywhere)
is a valid scalene (3 unequal sides) when the largest side > the two smaller sides
or is it when the largest side < the two smaller sides, how do I know this for sure (w/o actually building a triangle)
Same goes for isosceles (2 sides same):
is a valid iscosceles when:
A) longest side > sum of two equal sides
==OR===
B) longest side < sum of two equal sides