C-style for loop