public class PrimeFactor {
public static void main(String[] args){
double i = 400, factor = 0;
for(double counter = 2; counter <= i; counter++){
if(i % counter == 0){
factor = i / counter;
System.out.println(factor);
}
}
}
}
can anyone point me in the right direction for my next step?
Thanks :D
Edited by Cruel Hand, 26 November 2011 - 02:17 PM.
mis-spelled word


Sign In
Create Account


Back to top









