how to reverse a number in c# using for loop