Second heptagonal numbers | Java implementation to find N - th term in the series ; Function to find N - th term in the series ; Driver code ; Function call
class GFG { static void findNthTerm ( int n ) { System . out . println ( n * ( 5 * n + 3 ) / 2 ) ; } public static void main ( String [ ] args ) { int N = 4 ; findNthTerm ( N ) ; } } findNthTerm ( N ) ; } }