I don't understand what is wrong with the code listed below, help would be appreciated!
The last requirement for the code is not passing, and I do not see what is wrong with my code. It should have come up with some sort of compiler error if it was purely syntax related, right? Not too sure, and I don't want to look at the solution ._.
Thanks!
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());
BufferedReader reader1 = new BufferedReader(new InputStreamReader(System.in));
int b = Integer.parseInt(reader1.readLine());
BufferedReader reader2 = new BufferedReader(new InputStreamReader(System.in));
int c = Integer.parseInt(reader2.readLine());
if (a + b >= c && a + c >= b && b + c >= a) {
System.out.println("The triangle is possible.");
}
else {
System.out.println("The triangle is not possible.");
}
}
}