Assignment 46, Age Message 3

Code

   ///Name: Stella Koliavas
   ///Period: 5
   ///Program Name: Age3
   ///File Name: Age3.java
   ///Date Finshed: 11/12/15
   
   import java.util.Scanner;
   
   public class Age3
   {
    public static void main (String [] args)
    {
    
        Scanner siri = new Scanner(System.in);
        
        int age;
        
        System.out.print("How old are you? ");
        age = siri.nextInt();
        
        if (age < 16)
        {
            System.out.println("You can't do anything loser");
        }
        if (age >= 16 && age < 21 );
        {
            System.out.println("You can drive but not legally drink in the US ");
        }
        if (age >= 21 && age < 25)
        {   
            System.out.println("You can drink but not rent a car");
        }
        if (age >= 25)
        {
            System.out.println("You can do anything");
        }
    }
   }
       
        
        
        
       
        
        
        
    

Picture of the output

Assignment 46