public static void main(String[] args) { // Create a Scanner object to read input Scanner scanner = new Scanner(System.in); // Prompt the user to enter a number ...