I am pretty sure I have got the right solution but still it's not getting verified. Why is that?
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(bufferedReader.readLine());
int b = Integer.parseInt(bufferedReader.readLine());
int c = Integer.parseInt(bufferedReader.readLine());
if ((a + b) < c || (a + c) < b || (b + c) < a)
System.out.println("The triangle is not possible.");
else
System.out.println("The triangle is possible.");
}
}
anytwo of its sides"