sumNCubes(n)

Write definitions for the following two functions:
  1. int sumN(int n) returns the sum of the first n natural numbers.
  2. int sumNCubes(int n) returns the sum of the cubes of the first n natural numbers.
  3. Then test these functions with the following program.
    
    int main()
    {
        int N;
        cout << "Please input a natural number N -- ";
        cin >> N;
        cout << endl;
        cout << sumN(N) << '\t' << sumNCubes(N) << endl;
        return 0;
    }
    
    
  4. Combine your function and the above main() in a single .cpp file and submit it.
  5. The program may run as follows:
    
    Please input a natural number N -- 5
    
    15      225