j-p-p / TriangleTest

A program that reads three numbers. The three numbers represent the lengths of the sides of a triangle. The program prints a message that states whether the triangle is scalene, isosceles, or equilateral, and whether it is a right triangle as well.
3 stars 2 forks source link

Java version does not check for invalid sides #3

Open wiredin opened 12 years ago

wiredin commented 12 years ago

When given a side of 0 it returns scalene

jjohnsonh commented 12 years ago

Invalid sides like < 0 already check