Second heptagonal numbers | C # implementation to find N - th term in the series ; Function to find N - th term in the series ; Driver code ; Function call
using System ; class GFG { static void findNthTerm ( int n ) { Console . Write ( n * ( 5 * n + 3 ) / 2 ) ; } public static void Main ( ) { int N = 4 ; findNthTerm ( N ) ; } }