Program to print the sum of the given nth term | C # program to illustrate ... Summation of series ; function to calculate sum of series ; Sum of n terms is n ^ 2 ; Driver code
using System ; class GFG { static int summingSeries ( long n ) { return ( int ) Math . Pow ( n , 2 ) ; } public static void Main ( ) { int n = 100 ; Console . Write ( " The ▁ sum ▁ of ▁ n ▁ term ▁ is : ▁ " + summingSeries ( n ) ) ; } }