您的位置:首页 > 其它

倒序输出字符串

2010-07-19 09:50 225 查看
Code

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace strResverTest
{
class Program
{
static void Main(string[] args)
{
string s;
Console.WriteLine("Please input you world!");
s = Console.ReadLine();
char[] myChar = s.ToCharArray();
for (int i = myChar.Length -1; i >= 0; i--)
{
Console.Write("{0}",myChar[i]);
}
Console.ReadLine();

}
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: