i have added the code when triangle is possible and added else with the conditions mentioned when triangle isnt possible .. how to get the text printed for triangle isnt possible
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 x= reader.readLine();
int a=Integer.parseInt(x);
String y= reader.readLine();
int b = Integer.parseInt(y);
String z= reader.readLine();
int c= Integer.parseInt(z);
if (((a+b)>c)||((b+c)>a)||((c+a)>b)){
System.out.println("The triangle is possible.");
}
else if(((a>=(b+c))||(b>=(a+c))||(c>=(a+b)))){
System.out.println("The triangle is not possible.");
}
}
}