import java.util.Scanner;
class epler{
public static void main(String args[]){
Scanner scn = new Scanner(System.in);
double firstnumber, secondnumber, answer;
//Need a declaration for my mode, not sure which.
System.out.println("Enter first number: ");
firstnumber = scn.nextDouble();
System.out.println("Enter method: ");
mode = scn.nextInt();
if(mode == '+'){
System.out.println("Enter second number: ");
secondnumber = scn.nextDouble();
answer = firstnumber + secondnumber;
System.out.println(answer);
}else if(mode == '-'){
System.out.println("Enter second number: ");
secondnumber = scn.nextDouble();
answer = firstnumber - secondnumber;
System.out.println(answer);
}else if(mode == '*'){
System.out.println("Enter second number: ");
secondnumber = scn.nextDouble();
answer = firstnumber * secondnumber;
System.out.println(answer);
}else if(mode == '/'){
System.out.println("Enter second number: ");
secondnumber = scn.nextDouble();
answer = firstnumber / secondnumber;
System.out.println(answer);
}
}
}