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
/* LINQ Puzzle #8 ******************************************************* | |
Description: Given an integer n, count the number of squares on a chess board of size n by n. Must count squares of all sizes including 1x1, 2x2, 3x3, etc. | |
Sample Input: n = 2; | |
Sample Output: 5; | |
Sample Input: n = 3; | |
Sample Output: 14; | |
************************************************************************/ | |
// Given: | |
var n = 10; | |
// Your solution goes here: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment