新聞中心
這里有您想知道的互聯(lián)網(wǎng)營銷解決方案
C#倒序輸出字符
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(); } } }
分享標(biāo)題:C#倒序輸出字符
文章網(wǎng)址:http://www.ef60e0e.cn/article/pjccso.html