Que 1: An application uses a two-dimensionalarray defined as follows.
int days[5][5];
Write code in a function fun_addrow() that sums each row in thearray and displays the results. Write code in a functionfun_addcol() that sums each column in the array and displays theresults.
Que 2: Write a program to declare 2-Darray.
It prompt user to enter two matrices each of 3*3. Find thefollowing and store in third array and print it on the console.
1)sum of these two matrices
2)Difference of two matrices
3)Product of two matrices
Answer
public static void fun_addrow(int data[][]){ for(int i = 0;i<data.length;i++){ int sum = 0;
OR
OR