Sum of square of first n odd numbers | Efficient C # method to find sum of square of first n odd numbers . ; driver code
using System ; class GFG { static int squareSum ( int n ) { return n * ( 4 * n * n - 1 ) / 3 ; } public static void Main ( ) { Console . Write ( squareSum ( 8 ) ) ; } }