// Attempts to count the factors of 10.
// Does not compile; not an example to follow.

public class BadScope {
    public static boolean isMultiple(int x) {
        return n % x == 0;
    }
   
    public static void main(String[] args) {
        int n = 10;
        int count = 0;
        for (int i = 1; i <= n; i++) {
            if (isMultiple(i)) {
                count++;
            }
        }
        System.out.println("count = " + count);
    }
}
