int i = 0; while ( i < 10 ) { printf( "%d\n", i ); ++i; }
You can also:
int i = 10; do { --i; printf( "%d\n" ); } while ( i > 0 );