Skip to content

Instantly share code, notes, and snippets.

@posaunehm
Created April 11, 2012 13:45
Show Gist options
  • Save posaunehm/2359381 to your computer and use it in GitHub Desktop.
Save posaunehm/2359381 to your computer and use it in GitHub Desktop.
Enumerate number without any local varuable
Console.Write(
string.Concat(
Enumerable.Range(1,100).SelectMany(ele => ele.ToString() + System.Environment.NewLine))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment