Hello dear community,
After many tries, I got always the message that the task is failed.
Can anyone help? Tanks in advance.
package fr.codegym.task.task04.task0410;
/*
C'est mon jour de chance !
*/
public class Solution {
public static void main(String[] args) {
verifierIntervalle(60);
verifierIntervalle(112);
verifierIntervalle(10);
}
public static void verifierIntervalle(int a) {
String S1 = "Le nombre " + a + " est pas dans l'intervalle.";
String S2 = "Le nombre " + a + " n'est pas dans l'intervalle.";
if (a < 100) {
if (a > 50) {
System.out.println(S1);
} else {
System.out.println(S2);
}
}
else {
System.out.println(S2);
}
}
}