الرجوع
تسجيل الدخول

What is the logic error in the following code:

        int age = 20;

        if (age < 18) 
            System.out.println("Minor");
        else if (age >= 18)
            System.out.println("Adult");
        else
            System.out.println("Senior Citizen");