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