Skip to content

Instantly share code, notes, and snippets.

@markrendle
Created March 7, 2018 10:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save markrendle/cc253373a8d634a5c49114207e4a9d26 to your computer and use it in GitHub Desktop.
Save markrendle/cc253373a8d634a5c49114207e4a9d26 to your computer and use it in GitHub Desktop.
Lines of code
public static class Squares
{
public static int Square(int i) => i * i;
public static int SumOfSquares(int i) => Enumerable.Range(1, i).Select(Square).Sum();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment