Not sure why it's giving me problems. :>(
package com.codegym.task.task04.task0415;
/*
Rule of the triangle
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner in = new Scanner(System.in);
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
while (((a + b) < c) || ((b + c) < a) || ((a + c) < b)) {
System.out.println("The triangle is not possible.");
return;
}
while (((a + b) > c) || ((b + c) > a) || ((a + c) > b)) {
System.out.println("The triangle is possible.");
return;
}
}
}