Console.Write("請輸入一個字元串:"); string str = Console.ReadLine(); string reverse = "";//用於存放反序後的字元串 for (int i = str.Length - 1; i >= 0; i--) { reverse += ...
Console.Write("請輸入一個字元串:");
string str = Console.ReadLine();
string reverse = "";//用於存放反序後的字元串
for (int i = str.Length - 1; i >= 0; i--)
{
reverse += str[i];
}
Console.WriteLine(reverse+":串符字個一入輸請");
Console.ReadLine();