import java.util.*;
public class Switch {
  
  
  public static void main(String[] args) { 
    Scanner s = new Scanner(System.in);
    
    System.out.print("Enter a number: ");
    double number1 = s.nextDouble();
    
    System.out.print("Enter another number: ");
    double number2 = s.nextDouble();
    
    
    System.out.println("Choose 1 for addition.\n Choose 2 for multiplication."
                         +"\n Choose 3 for substraction.");
    System.out.println("Make a choice: ");
    int choice = s.nextInt();
    
    if(choice==1)
      System.out.println(number1 + number2);
    else if(choice==2)
      System.out.println(number1 * number2);
    else if(choice==3)
      System.out.println(number1 - number2);
    else
      System.err.println("ERROR! choice "+choice+" is not a valid selection.");
    
    switch(choice) {
      
      case 1:
        System.out.println(number1 + number2);
        break;
      case 2:
        System.out.println(number1 * number2);
        break;
      case 3:
        System.out.println(number1 - number2);
        break;
      default:
         System.err.println("ERROR! choice "+choice+" is not a valid selection.");
         break;
    }
  }
  
  /* ADD YOUR CODE HERE */
  
}
