Created
January 16, 2023 22:15
-
-
Save yubrajpokharel/fbef9a550b4882263d99d2812f60b635 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (age < 18) { | |
System.out.println("You are a minor."); | |
} else if (age >= 18 && age < 65) { | |
System.out.println("You are an adult."); | |
} else { | |
System.out.println("You are a senior citizen."); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment