write a program to calculate the sum of each row & column in 2-dimensional array.