70. 다음 JAVA 프로그램이 실행되었을 때의 결과는?
public class arrayl { public static void main(String[] args) { int cnt = 0; do { cnt++; } while(cnt < 0); if(cnt==1) cnt++; else cnt=cnt+3; System.out.printf("%d", cnt); } }
- ①2
- ②3
- ③4
- ④5
public class arrayl { public static void main(String[] args) { int cnt = 0; do { cnt++; } while(cnt < 0); if(cnt==1) cnt++; else cnt=cnt+3; System.out.printf("%d", cnt); } }