The output of the program when the "age" is set to 14 as input is:
Please enter your age:
Sorry you are underage
Explanation:
The program starts by prompting the user to enter their age with the message "Please enter your age: ".
The user inputs the age, which in this case is 14.
The program checks the first condition: if (userAge < 0 || userAge > 100). Since 14 is within the range of 0 to 100, this condition is false, and the program does not execute the code inside this block.
The program then checks the second condition: else if (userAge < 18). Since 14 is less than 18, this condition is true, and the program executes the statement System.out.println("Sorry you are underage");.
The program does not check the subsequent conditions (else if (userAge < 21) and else) because it has already found a true condition and executed the corresponding block.
Therefore, the output is "Sorry you are underage".