Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main()
- {
- int arr[3][3];
- cout << "Enter numbers: ";
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 3; j++) {
- cin >> arr[i][j];
- }
- }
- cout << "Matrix 3x3:\n";
- for (int i = 0; i < 3; i++) {
- for (int j = 0; j < 3; j++) {
- cout << arr[i][j] << " ";
- }
- cout << endl;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement