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 { Scanner x=new Scanner(System.in); int a=x.nextInt(); int b=x.nextInt(); int c=x.nextInt(); if ((a+b)>=c && (a+c)>=b && (c+b)>=a) {System.out.println("The triangle is possible."); } else {System.out.println("The triangle is not possible."); } //write your code here } }