The code works with me
But i don't understand why not accept it
it says ( Task requirements are not met ) 😟
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));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
int gNum;
if ( a > b && a > c )
{
gNum = a;
if ( b + c > gNum )
System.out.println("The triangle is possible.");
else
System.out.println("The triangle is not possible.");
}
else if ( b > a && b > c )
{
gNum = b;
if ( a + c > gNum )
System.out.println("The triangle is possible.");
else
System.out.println("The triangle is not possible.");
}
else if ( c > a && c > b )
{
gNum = c;
if ( a + b > gNum )
System.out.println("The triangle is possible.");
else
System.out.println("The triangle is not possible.");
}
else
System.out.println("The triangle is not possible.");
}
}