package p22_09_24;
public class Lotto2 {
public static void main(String[] args) {
for (int i=0; i <6; i++) {
i = (int)(Math.random()*45)+1;
System.out.println(i);
}
}
}
As you can see, the exit is under the 'for' which means it should loop six times, but the answer is only one num.