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

int num = 1;
while ( num < 20)
{

num++;
System.out.println(num);

}

2007-12-25 15:16:39 · 4 answers · asked by anonymous 3 in Computers & Internet Programming & Design

This isnt my homework just a curiosity, for all those who think i am asking for HW answers

2007-12-25 16:01:58 · update #1

4 answers

for ( int num = 1; num < 20; ++num ){
  System.out.println(num);
}

2007-12-25 15:52:21 · answer #1 · answered by jgoulden 7 · 1 0

for(int i=1;i<20;i++)
{
System.out.println(i);
}

here i replaced num with i,so that u can make up the differnce beter.

2007-12-26 02:02:15 · answer #2 · answered by Generoushous 2 · 0 0

1. That's not a question, that's a statement.
2. Don't ask people to do your homework.

2007-12-25 23:32:13 · answer #3 · answered by Evan G 2 · 0 1

I agree with Evan. No one should have done this person's homework for them.

2007-12-26 13:28:45 · answer #4 · answered by Bonkers! 7 · 0 1

fedest.com, questions and answers