Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- int mat[3][3];
- mat[0][0] = 1;
- mat[0][1] = 2;
- mat[0][2] = 3;
- mat[1][0] = 4;
- mat[1][1] = 5;
- mat[1][2] = 6;
- mat[2][0] = 7;
- mat[2][1] = 8;
- mat[2][2] = 9;
- cout << mat[0][0] << " " << mat[0][1] << " " << mat[0][2] << endl;
- cout << mat[1][0] << " " << mat[1][1] << " " << mat[1][2] << endl;
- cout << mat[2][0] << " " << mat[2][1] << " " << mat[2][2] << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement