Hexacontagon Number | C ++ program for above approach ; Finding the nth hexacontagon number ; Driver code
#include <iostream> NEW_LINE using namespace std ; int hexacontagonNum ( int n ) { return ( 58 * n * n - 56 * n ) / 2 ; } int main ( ) { int n = 3 ; cout << "3rd ▁ hexacontagon ▁ Number ▁ is ▁ = ▁ " << hexacontagonNum ( n ) ; return 0 ; }