// This file has beed writen for Planet 

//     

// Source Code and

// Feed Your Complier ( http://fatal.ewn

//     ix.com )

// If you want to post this file on your

//     

//site email me

// itz_fatal@hotmail.com

#include 

#include 

int main()

    {

    int x, y; // Loop Counter

    int x1, y1, repeat;

    // x, y Think like that if you input x =

    //     1, y = 3

    //You will output "69", that how a matri

    //     x works

    int matrix[4][4] = { 12, 4, 23, 6,

    45, 78, 3, 57,

    69, 23, 9, 2,

    34, 11, 5, 99 };

    cout<<"My Matrix: "<< endl << endl;

    for( x = 0; x < 4; x++)

        {

        for( y = 0; y < 4; y++)

            {

            cout<< matrix[x][y] << endl;

        }

    }

    cout<< endl <<"Both x and y have a max point of 3" << endl;

    do

        {

        cout<< endl <<"Enter in x and y points[ x  y ]: ";

        cin>> x1 >> y1;

        cout<<"Point ("<< x1 <<", " << y1 <<") = " << matrix[x1][y1] << endl

        << endl;

        cout<<"Would You like Output new points (0 to quit)? ";

        cin>> repeat;

    }while( repeat != 0);

    cout<< endl <<"http://fatal.ewnix.com"<< endl;

    

    system("PAUSE");

    return 0;

}