HowOld

Code

    import java.util.Scanner;
  
  public class HowOld
  {
      public static void main( String[] args )
      {
          Scanner keyboard = new Scanner(System.in);
  
          int age;
          
          System.out.print( " How old are you" );
          age = keyboard.nextInt();
          
          if ( age < 16)
          { 
              System.out.println( "You can't drive" );
          }
          
          if ( age < 18 )
          {
              System.out.println( "you can't vote" );
          }
          
          if ( age > 25 )
          {
              System.out.println( " Do what you want who cares about the...LAW ");
              
          }
      }
      
  }

HowOld

Assignment 34