Also, one other thing: for() and while() loops are essentially identical. The following loops are exactly the same: #1) for(i = 0; i < 100; i++) { body of loop } #2) i = 0; while(i < 100) { body of loop i++; } Hope it helps.