/* ------------------------------------------ 三角形の判定 If_05_sankakukei ------------------------------------------ */ import java.io.*; class If_05_sankakukei { public static void main(String[] args) throws Exception { int a,b,c; BufferedReader inp=new BufferedReader (new InputStreamReader(System.in)); String keybd; System.out.print("aはいくつ-->"); keybd=inp.readLine(); a=Integer.parseInt(keybd); System.out.print("bはいくつ-->"); keybd=inp.readLine(); b=Integer.parseInt(keybd); System.out.print("cはいくつ-->"); keybd=inp.readLine(); c=Integer.parseInt(keybd); if ( a+b>c && b+c>a && c+a>b ) System.out.print("三角形が作れます\n"); else System.out.print("三角形になりません\n"); } }