do..while

The do while loop was fine, but just had a syntax error. Idk what the first kid was talking about. Using the while loop, it will only loop to 29 anyway.

B1Gtone:
Please explain?

If I dont put "int second;" then the compiler says "second was not declared in this scope"

Because you are trying to read second before you declare it, simply move the byte.... line outside the while loop.