Computer Science Canada

loop help?

Author:  glitz [ 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

Author:  TheFerret [ Mon Nov 27, 2006 11:35 pm ]
Post subject: 

Java:
for (int i = 2 ; i < 10 ; i += 2) {
    System.out.println(i);
}


: