Instructions: We have defined an integer array numArray[5] for you. We have provided the code to get the input for the array elements. You have to write the logic to add the elements. Print the sum
Java solution