Browse Source

Test 1

master
Felix Schmidt 2 years ago
parent
commit
a27904a7b2
1 changed files with 3 additions and 0 deletions
  1. 3
    0
      src/TriangleChecker.java

+ 3
- 0
src/TriangleChecker.java View File



// Analyse der Dreiecksart // Analyse der Dreiecksart
public static TriangleType checkTriangle(float a, float b, float c) { public static TriangleType checkTriangle(float a, float b, float c) {
if (a + b > c || b + c > a || a + c > b) {
return TriangleType.NORMAL;
}
return TriangleType.NONE; return TriangleType.NONE;
} }



Loading…
Cancel
Save