Skip to content

Instantly share code, notes, and snippets.

@jz5

jz5/haiku.cs Secret

Last active August 29, 2015 14:16
Show Gist options
  • Save jz5/3499e9208bd63ce18fae to your computer and use it in GitHub Desktop.
Save jz5/3499e9208bd63ce18fae to your computer and use it in GitHub Desktop.
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