c++ program to reverse a number