reversing a number in c