English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

3. What is the output of the following:
int n = 5;
while (n > 0) {
System.out.println("n = " + n);
if ( n == 1) continue;
n--;
}

2007-11-13 16:53:34 · 2 answers · asked by Anonymous in Computers & Internet Programming & Design

2 answers

You really need to do your own Java homework. If you don't practice, you're going to get destroyed on the test. If you really are a nerd, you need to know Java anyways.

2007-11-13 16:56:50 · answer #1 · answered by mdigitale 7 · 0 0

5 4 3 2

2007-11-13 16:57:25 · answer #2 · answered by Anonymous · 0 0

fedest.com, questions and answers