How do I allow a user to input a number and then make them select the number 1 to cube or number 2 to square it and produce the result? I don't want to use the math function but rather something like this to square it:
result = var * 2;
System.out.println(result);
Any help in starting would be appreciated
