Java Program – a simple demonstration of using the if-elseif statement.

Output: