public class IfElseDemo {
public static void main(String[] args) {
double note = 13.5;
String mention="";
if (note >= 16) {
mention = "Très bien";
} else if (note >= 14) {
mention = "Bien";
} else if (note >= 12) {
mention = "Assez bien";
} else if (note >= 10) {
mention = "passable";
}
System.out.println("Votre Mention = " + mention);
}
}