다음 Java 프로그램을 실행했을 때 출력되는 결과는?
public class Test {
public static void main(String[] args) {
int x = 7, y = 0;
while(x-- > 0) {
if (x%3 == 0)
continue;
y++;
}
System.out.print(y);
}
}- 10
- 24
- 35
- 47
꿈라CBT