// write a text file
#include <iostream>
#include <fstream>
#include "conio.h"

using namespace std;

int main ()
{

int X[2][2]={{4,-7},{5,-9}};
X[0][1]=X[1][0];
X[1][0]=X[1][0];

ofstream myfile;
myfile.open("data.txt");
myfile<<X[0][0]<<" "<<X[0][1]<<endl;
myfile<<X[1][0]<<" "<<X[1][1]<<endl;
myfile.close();

getch();
return 0;

}