Here is my code
int i = 0; while (i < 10) { i++; i = i % 10; }
The above code resets
Both your loops are while(true) so they play no role in the question.
while(true)
That leaves: "can I make a count-down roll over without an if?"
The answer is yes, if you realy want to:
i--; i = (i + 10) % 10;