basically both loops function the same. If it is code you want to change for personal reasons, or an assignment, I will give you standard loop protocol.

for loops are used when you can more or...