c program to reverse a number using while loop