Find sum of the series ? 3 + ? 12 + ... ... ... upto N terms | C # implementation of above approach ; Function to find the sum ; Apply AP formula ; Driver code ; number of terms
using System ; class GFG { static double findSum ( long n ) { return Math . Sqrt ( 3 ) * ( n * ( n + 1 ) / 2 ) ; } public static void Main ( ) { long n = 10 ; Console . WriteLine ( findSum ( n ) ) ; } }