JAVA HELP
Pls I need help to create a Java code that allows user guess a number and compares the number with a guessed number. If the number input by the user is between 2 and 8, ask user "do you want to find factorial?" If yes, code implements factorial of input number. Pls who can help? This is what I have: public static void main(String args[]) { Scanner keyboard = new Scanner(System.in); int count = 0; int a = 1 + (int) (Math.random() * 99); int guess = 0; System.out.println("I am thinking of a number from 1 to 100" + " ... guess what it is ?"); while (guess != a) { guess = keyboard.nextInt(); count++; if (guess > a) { System.out.println("lower!"); } else if (guess < a) { System.out.println("higher!"); } } System.out.println("Congratulations. You guessed the number with " + count + " tries!"); }