package CS1301;
public class Homework4 {
public static void Questions(int value) {
if (value > 0) {
int count = 1;
while (count <= value) {
if (value % count == 0) {
System.out.println(count);
}
count = count ++;
}
}
}
}
So I have been trying to get this to work for a bit now and I cant seem to find what is I'm doing wrong. When I try to run it it says "no main methods found, but I though the method defined by public static void. Also the purpose of this was to find the factors of the value. This is my first program so any pointers on better formatting would also be appreciated.