Skip to content

Instantly share code, notes, and snippets.

@jz5

jz5/haiku.cs Secret

Last active Aug 29, 2015
Embed
What would you like to do?
var s = "古池や,蛙飛びこむ,水の音".Split(',');
for (var i = 0; i < s.Max(c => c.Length); i++)
{
for (var j = s.Length - 1; j >= 0; j--)
{
Console.Write((i < s[j].Length) ? s[j][i] : ' ');
}
Console.WriteLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment