1. Take an array of size 5x5 and initialize it with random numbers of range 1 to 10, now addall the elements of the 2D array and display sum.2. Calculate the total/sum of all the values in the array.Example:Array:2 3 5 3 14 5 1 2 14 7 3 2 02 1 1 5 11 7 8 9 0Sum array: 78
3. Sum all the element in each column and display output.Example:Array:2 3 5 3 14 5 1 2 14 7 3 2 02 1 1 5 11 7 8 9 0Sum array:13 23 18 21 3
4. Perform sum of all the elements of the arrays whose row number and column numberboth are odd. Display the final sum.Example:Array:2 3 5 3 14 5 1 2 14 7 3 2 02 1 1 5 11 7 8 9 0Sum array: 13Note: create function for each task
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here