Can someone help me determine what I have done wrong and why this will not execute properly? I have also tried having just an else clause rather than the else if( condition ) clause but that also did not fix the problem.
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a+b > c || b+c > a || a+c > b){
System.out.println("The triangle is possible.");
}
else if (c >= a+b || a >= b+c || b >= a+c) {
System.out.println("The triangle is not possible.");
}
}
}