Sum of all the numbers in the Nth parenthesis | C ++ implementation of the approach ; Function to return the sum of the numbers in the nth parenthesis ; Driver code
#include <bits/stdc++.h> NEW_LINE using namespace std ; int findSum ( int n ) { return pow ( n , 3 ) ; } int main ( ) { int n = 3 ; cout << findSum ( n ) ; return 0 ; }