So with the variables 1,2,3 the code will run and the message "the triangle is not possible" comes up. That should be correct because it is executing properly but the verification doesn't register it. Anyone see something that I can't?
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String sA = reader.readLine();
String sB = reader.readLine();
String sC = reader.readLine();
int a = Integer.parseInt(sA);
int b = Integer.parseInt(sB);
int c = Integer.parseInt(sC);
if ((a+b)>c && (b+c)>a && (a+c)>b){
System.out.println("The triangle is possible.");
}
else if((a+b)>=c && (b+c)>=a && (a+c)>=b){
System.out.println("The triangle is not possible.");
}
}
}