// MatrixFromArray.cpp

#include <iostream>
using namespace std;

const int Rows = 3;
const int Cols = 3;

void print(int[Rows][Cols]);
void transpose(int[Rows][Cols]);

void main()
{
	int M1[Rows][Cols] = {{1,2,3},{5,-1,4},{-6,7,3}};
	int M2[Rows][Cols] = {{1,5,-6},{2,-1,7},{3,4,3}};
	int SUM[Rows][Cols];

	for (int r=0; r < Rows; ++r)
		for (int c=0; c < Cols; ++c)
			SUM[r][c] = M1[r][c] + M2[r][c];

	print(SUM);
	transpose(M1);
	cout << endl << "M1 Transposed is:" << endl;
	print(M1);
}

void print(int matrix[Rows][Cols])
{
	for (int r=0; r < Rows; ++r)
	{	for (int c=0; c < Cols; ++c)
			cout << matrix[r][c] << ' ';
		cout << endl;
	}
}

void transpose(int matrix[Rows][Cols])
{
}