古诗从左到右输出
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);
}
}