Ad

Really simple problem to work on if you have just started learing C#.

Determine the SUM of the 3 arrays and return the total in an int format.

Enjoy..

#Arrays

using System;
using System.Linq;

 public static class Kata
 {
 public static int ArraySum(int[] arr1, int[] arr2, int[] arr3)
        {
            int[] newArray1 = arr1.Concat(arr2).ToArray();
            int[] newArray2 = newArray1.Concat(arr3).ToArray(); 
            int sum = newArray2.Sum();
            return sum; 
        }
}