// Two Dimensional Arrays as Arguments
#include <iostream>
using namespace std;
void f(int [][2],int,int);
int main()
{
	int i, j;
	int a[3][2] = {{5,7},{6,8},{9,10}};
	f(a,3,2);
	for (i = 0; i < 3; i++)
	{
		for (j = 0; j < 2; j++)
			cout << a[i][j] << '\t';
		cout << endl;
	}
	return 0;
}

void f(int b[][2],int rows, int cols)
{
	for (int i = 0; i < rows; i++)
		for (int j = 0; j < cols; j++)
			b[i][j] = b[i][j] * b[i][j];
}



