Construct an Array of size N whose sum of cube of all elements is a perfect square | C # implementation of the above approach ; Function to construct an array of size N ; Prints the first N natural numbers ; Driver Code
using System ; class GFG { public static void constructArray ( int N ) { for ( int i = 1 ; i <= N ; i ++ ) { Console . Write ( i + " ▁ " ) ; } } public static void Main ( String [ ] args ) { int N = 5 ; constructArray ( N ) ; } }