Find the Nth Hogben Numbers | C ++ program to print N - th Hogben Number ; Function returns N - th Hogben Number ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int HogbenNumber ( int a ) { int p = ( pow ( a , 2 ) - a + 1 ) ; return p ; } int main ( ) { int N = 10 ; cout << HogbenNumber ( N ) ; return 0 ; }