help me to start the code and i will go ahead please
Debugging will be simpler if the matrix contains int, you can change it
later. I would defer the human interface to the end.
perhaps something like this.
#define N 2
int main()
{
int a[N][N] = {3, 4, 5, 6};
int b[N][N] ={37, 38, 39, 40};
iint c[N][N];
.stuff such as:
add(a, b, c);
show(c);
Write a function to display a matrix for debugging purposes (show()). Get it
working to your satisfaction. Start writing functions for each of the
required results. Start with add, I think your code was OK. Gradually add
the harder stuff. Add a bit,
debug, verify results. . Remember that C++ arrays start with zero. Repeat
until done. Don't type a bunch of stuff, type as needed for the next few
minutes of debug. main will be pretty empty, basically the human interface
and function calls.
Change N to a variable. Add the human interface. main will be pretty empty,
basically the human interface and function calls. Done.