🚀 Triangle Intro Exercise
The program reads three integer values from an input dialog. The three values represent the lengths of the sides of a triangle. The program displays a message that states whether the triangle is scalene (ingen ens sider), isosceles (ligebenet), or equilateral (ligesidet)
out/production/Triangles
java Main
Test case | status
———————————————————————————————————-|—————
3 the same ints (equilateral) | ✔︎
2 the same ints, one different int (isosceles) | ✔︎
3 random ints (scalene) | ✔︎
3 random ints which by the triangle definition can’t build a triangle | ✔︎
At least one value is a zero or less | ✔︎
At least one value is not an int | ✔︎
At least one value is not a number (String, char, etc.) | ✔︎
Empty input | ✔︎