一位一位竖着FOR出输入的字符串

namespace ConsoleApplication3
{
    class Program
    {
        static void Main(string[] args)
        {
            
            string a=Console.ReadLine();
            for (int i = 0; i < a.Length; i++)
            {
                string b = a.Substring(i,1);//每次输出输入字符串a的a[i]并且依次列出

                Console.WriteLine(b);依次累计列出
            }
            Console.ReadLine();
        }
    }
}

 

posted @ 2015-04-03 08:48  Yusarin  阅读(121)  评论(0编辑  收藏  举报