int a=1;
for(int i=0;i<=5;i++) {
for(int j=0;j<=6;j++) {
System.out.print(a+"\t");
a++;
j++;
}
System.out.println("\n");
i++;
}
}
}
답이 1 2 3 4
5 6 7 8
9 10 11 12
왜이렇게나오는건가요?
int a=1;
for(int i=0;i<=5;i++) {
for(int j=0;j<=6;j++) {
System.out.print(a+"\t");
a++;
j++;
}
System.out.println("\n");
i++;
}
}
}
답이 1 2 3 4
5 6 7 8
9 10 11 12
왜이렇게나오는건가요?
답 저렇게 안나오는데요