write a c program to reverse the given number