{
public static void Main(string[] args)
{
string str;
Console.WriteLine("請輸入數字:");
str=Console.ReadLine();
Console.WriteLine("數字轉換後結果:");
for(int i=str.Length-1;i>=0;i--)
{
Console.Write(str[i]);
}
Console.WriteLine();
Console.WriteLine("您輸入的數字位數為{0}",str.Length);
Console.Write("Press any key to continue . . . ");
Console.ReadKey(true);
}
}