Tetracontadigonal Number | C # implementation for the above approach ; Function to find the nth Tetracontadigonal Number ; Driver Code
using System ; class GFG { static int TetracontadigonalNum ( int n ) { return ( 40 * n * n - 38 * n ) / 2 ; } public static void Main ( ) { int n = 3 ; Console . Write ( TetracontadigonalNum ( n ) ) ; } }