Write a Java program to accepts an integer and count the factors of the number.
public class App {
public static void main(String[] args) throws Exception {
// scanner
Scanner scanner = new Scanner(System.in);
// get the input number
// determine how many factors
scanner.close();
}
}
Enter an integer: 25
3
Enter an integer: 30
8