Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <ctime>
- #include <iomanip>
- using namespace std;
- int
- main ()
- {
- srand (time (NULL));
- int n;
- int max = 0;
- int arr[100][100];
- int arrB[100][100];
- cout << "Enter n: ";
- cin >> n;
- cout << "Matrix A: " << endl;
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < n; j++)
- {
- arr[i][j] = rand () % 40;
- cout << setw (4) << arr[i][j] << " ";
- }
- }
- for (int i = 0; i < n; i++)
- {
- for (int j = 0; j < n; j++)
- {
- for (int k = 0; k < n; k++)
- {
- for (int z = 0; z < n; z++)
- {
- if(k>=i;k<=n-1-i;z)
- }
- }
- cout << "\n";
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement