Tetracontaoctagonal Number | C ++ implementation for above approach ; Function to find the nth Tetracontaoctagonal Number ; Driver Code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int TetracontaoctagonalNum ( int n ) { return ( 46 * n * n - 44 * n ) / 2 ; } int main ( ) { int n = 3 ; cout << TetracontaoctagonalNum ( n ) ; return 0 ; }