-
-
Save thomaslevesque/661499b96bf8dc9050f8 to your computer and use it in GitHub Desktop.
Code Hunt 02.05
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq; | |
public class Program { | |
public static int Puzzle(int n) { | |
return Enumerable | |
.Range(0, n) | |
.Sum(i => i * i); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment