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

1. Rewrite the following using a while loop:
for (int n = 0; n < 10; n=n+2)
System.out.println("n = " + n);

2007-11-13 16:51:08 · 1 answers · asked by Anonymous in Computers & Internet Programming & Design

1 answers

Okay, I'll do your homework for you.

int n = 0 ;
while ( n < 10 ) {
System.out.println( "n = " + n ) ;
n += 2 ;
}

Now start reading your textbook.

2007-11-13 16:55:15 · answer #1 · answered by mdigitale 7 · 1 0

fedest.com, questions and answers