Why. Verify the result say " Task requirements are not met "?
Thanks a lot!
I have changed my code, but say no met yet ?
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 reader = new BufferedReader( new InputStreamReader(System.in));
String A = reader.readLine();
String B = reader.readLine();
String C = reader.readLine();
int a = Integer.parseInt(A);
int b = Integer.parseInt(B);
int c = Integer.parseInt(C);
int d =a+b ; int e =a+c; int f=b+c;
if (d>c || e>b || f>a )
System.out.println("The triangle is possible.");
else
if (d<=c || e<=b || f<=a)
System.out.println("The triangle is not possible.");
//write your code here
}
}