Find the nth term of the given series | C # implementation of the approach ; Function to return the nth term of the given series ; Driver code
using System ; class GFG { static int oddTriangularNumber ( int N ) { return ( N * ( ( 2 * N ) - 1 ) ) ; } public static void Main ( String [ ] args ) { int N = 3 ; Console . WriteLine ( oddTriangularNumber ( N ) ) ; } }