古诗从左到右输出

  private static void ShowReverse(string t, int len)
        {
            int index = 0;
            int count = 0;
            string str = string.Empty;
            count = t.Length / len;
            for (int i = 0; i < len; i++)
            {
                str = string.Empty;
                index = i;
                for (int j = 0; j < count; j++)
                {
                    str += t.Substring(index, 1);
                    index += 5;
                }
                Console.WriteLine(str);
            }
          
        }

posted @ 2013-04-26 19:43  Predator  阅读(194)  评论(0编辑  收藏  举报