Advertisement
Guest User

Untitled

a guest
Mar 25th, 2017
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package start;
  2.  
  3. public class apples {
  4.     public static void main(String args[]) {
  5.  
  6.         int boy = 19, girl = 19;
  7.        
  8.         if (boy >= 18) {
  9.             System.out.println("The boy can enter!");
  10.         } else if (boy <= 18) {
  11.             System.out.println("The boy cannot enter!");
  12.         }
  13.        
  14.         if (girl >= 18) {
  15.             System.out.println("The girl can enter!");
  16.         } else if (girl <= 18) {
  17.             System.out.println("The girl cannot enter!");
  18.         }
  19.     }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement