Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package start;
- public class apples {
- public static void main(String args[]) {
- int boy = 19, girl = 19;
- if (boy >= 18) {
- System.out.println("The boy can enter!");
- } else if (boy <= 18) {
- System.out.println("The boy cannot enter!");
- }
- if (girl >= 18) {
- System.out.println("The girl can enter!");
- } else if (girl <= 18) {
- System.out.println("The girl cannot enter!");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement