Java Program a simple demonstration of using if statement.1 min read

Output: