您的位置:首页 > 编程语言 > C#

C#倒序输出字符

2013-12-07 14:35 176 查看
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace retrun
{
class Program
{
static void Main(string[] args)
{
string act = Console.ReadLine();
string rev = "";
for (int index = act.Length-1;index >= 0;index--)
{
rev += act[index];
}
Console.WriteLine("{0}",rev);
Console.ReadKey();
}
}
}


本文出自 “进取” 博客,请务必保留此出处http://fsoyzh.blog.51cto.com/5389484/1337766
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: