Practice pieces


Loops: odd/even

Ok, so here's the simplest way of doing this:

Odd.java


 

Can you finish this off by:

1) Getting the loop to only print the odd numbers?

2) Getting the loop to only print the odd numbers divisible by 3?