Hi, I'm new. I'm trying to use an array to print out multiples of 13, up to 400. (I know 400 isn't one of them.) All my computer prints out are zeros.
Here's my code:
Code:
class multiples {
public static void main(String[] argumets){
int mults [] = new int [400];
for (int dex = 0; dex < mults.length; dex++){
int current = mults[dex];
if (current % 13 == 0){
System.out.println("#: " + current);
}
}
}
}
Can someone tell me why it only prints zeros? Thanks in advance.