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
using System ; class GFG { static int findSum ( int n ) { return ( int ) Math . Pow ( n , 3 ) ; } public static void Main ( String [ ] args ) { int n = 3 ; Console . WriteLine ( findSum ( n ) ) ; } }