text: Central polygonal numbers | C # program to find N - th term in the series ; Function to find N - th term in the series ; Driver code
code: using System ; class GFG { static void findNthTerm ( int n ) { Console . Write ( n * n - n + 1 ) ; } public static void Main ( ) { int N = 4 ; findNthTerm ( N ) ; } }