int whileIndex,forIndex; whileIndex = 1; while (whileIndex < 8) { System.out.println(whileIndex); for (forIndex = -1;forIndex < whileIndex;forIndex = forIndex+2) { System.out.println(forIndex); } }
int loopIndex; loopIndex = 27; while (loopIndex > 3) { System.out.println(loopIndex); loopIndex -= 3; }