Voila je comprends pas pourquoi , mon programme fonctionne bien mais la derniere tache ne valide pas alors qu'en testant j'affiche correctement la phrase si le triangle n'est pas possible ...
package fr.codegym.task.task04.task0415;
/*
La règle du triangle
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
Scanner scanner = new Scanner(System.in);
int cote1 = scanner.nextInt();
int cote2 = scanner.nextInt();
int cote3 = scanner.nextInt();
if ((cote1+cote2) >= cote3 && (cote1+cote3) >= cote2 && (cote2+cote3) >= cote1)
System.out.println("Le triangle est possible.");
else
System.out.println("Le triangle n'est pas possible.");
}
}