using System;
public class Program
{
public static void Main()
int num = 123;
string str = num.ToString();
char[] newStr = new char[str.Length];
for(int i = 0; i < str.Length; i++)
newStr[str.Length - 1 - i] = str[i];
}
Console.WriteLine(newStr);