Java program asking the user to enter a number and will be printed out 10 times and enter a letter "x" to exit.