1public static int reverseItRecursive(int number)
2{
3 if (number == 0)
4 return 0;
5
6 int n = number;
7 int pow = 1;
8
9 while (n >= 10)
10 {
11 n = n / 10;
12 pow = pow * 10;
13 }
14 return (n + reverseItRecursive(number - n*pow)*10);
15}
16