Determining the type of triangle by its sides
TypeScript
Easy
types
Task «Determining the type of triangle by its sides»
Write a program that takes three integers representing the lengths of the sides of a triangle and determines its type: equilateral, isosceles, or scalene. If a triangle with these sides does not exist, output 'not a triangle'.
Input Format
Three integers separated by spaces or line breaks.
Output Format
String: 'equilateral', 'isosceles', 'scalene', or 'not a triangle'.
Examples
Example 1
INPUT
3 3 3
OUTPUT
равносторонний
Example 2
INPUT
3 4 3
OUTPUT
равнобедренный
Example 3
INPUT
3 4 5
OUTPUT
разносторонний
main.ts