Heptacontagon Number | C ++ program for above approach ; Finding the nth heptacontagon number ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int heptacontagonNum ( int n ) { return ( 68 * n * n - 66 * n ) / 2 ; } int main ( ) { int N = 3 ; cout << "3rd ▁ heptacontagon ▁ Number ▁ is ▁ = ▁ " << heptacontagonNum ( N ) ; return 0 ; }