Need help in Matrix Addition & finding Inverse of a Matrix
Am a beginner in C programming & I have following two tough programs as a part of my self training.
1. In a single-dimensional matrix, I want to add the elements of each row & elements of each column separately & then I have to print the result in the last column & in the last row. For example, If I got 3 rows & 3 columns, I want to print the sum of row elements in the 4 th column for each row & sum of column elements in the 4th row for each column. How can I accomplish this?
2. In a single dimensional matrix, I have to reverse the second row elements alone & I have to print the result in the result matrix. How can I accomplish this?
I request someone to reply at the earliest. I have been trying to solve this for the past 2 days. But am unable to solve it.