Browse Source

a == c unnötig, da a==b && b==c

master
Mikko Winkler 2 years ago
parent
commit
5bb5178e34
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/TriangleChecker.java

+ 1
- 1
src/TriangleChecker.java View File

@@ -53,7 +53,7 @@ public class TriangleChecker {
//Gleichschenkliges Dreieck
if(a==b || b==c|| a==c) {
//Gleichseitiges Dreieck
if (a == b && b == c && a == c) return TriangleType.EQUILATERAL;
if (a == b && b == c) return TriangleType.EQUILATERAL;

return TriangleType.ISOSCELES;
}

Loading…
Cancel
Save