Classic 3-4-5 triangle is scalene
Input
triangle_type(3, 4, 5)
Output
scalene
All sides different and satisfy triangle inequality, so it's scalene.
Full lesson preview
Given three side lengths, determine whether they form a valid triangle and classify it.
Problem statement
Task
Examples
Input
triangle_type(3, 4, 5)
Output
scalene
All sides different and satisfy triangle inequality, so it's scalene.
Input format
Output format
Constraints
Samples
Input
triangle_type(2, 2, 2)
Output
equilateral
All three sides equal.