Note, this is intended for a beginner (as I was at the time when I wrote this) who thinks in terms of high level languages.
Firstly, it's best to type down what exactly we'd like to write in a higher level language:
int i;
for ( i = 0 ; i < 10 ; i++ ) {