loop help?
Author |
Message |
glitz
|
Posted: Mon Nov 27, 2006 11:02 pm Post subject: loop help? |
|
|
I'm a complete beginner to JAVA so all of this is kind of confusing to me. but in my computer science class we have to figure out a couple of things with loops.
for example, we have to print this out using nested loops:
2-----
-4----
--6---
---8--
any ideas? thanks <3 |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
TheFerret
![](http://compsci.ca/v3/uploads/user_avatars/1203353290461453ed4f045.jpg)
|
Posted: Mon Nov 27, 2006 11:35 pm Post subject: (No subject) |
|
|
Java: | for (int i = 2 ; i < 10 ; i += 2) {
System. out. println(i );
} |
|
|
|
|
|
![](images/spacer.gif) |
|
|