26.12.2015, 21:59
Add printf( "%i", i ); before format and run again to see how it changes on each iteration.
Looks like your code is correct, so I can just guess what's wrong
Looks like your code is correct, so I can just guess what's wrong