Advertisement
Polnochniy

Untitled

Jan 22nd, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. #include <iostream>
  2. #include <time.h>
  3. using namespace std;
  4. const int N = 2;
  5. const int P = 2;
  6.  
  7. int main()
  8. {
  9. int a[N][P];
  10. int k[N][P];
  11. setlocale(LC_ALL, "Rus");
  12. srand(time(NULL));
  13. cout << " Найтие минор матрицы " << endl;
  14. cout << "Вывод элементов" << endl;
  15. for (int i = 0; i < N; i++)
  16. {
  17. for (int j = 0; j < P; j++)
  18. {
  19. a[i][j] = rand() % 12;
  20. cout << a[i][j] << " ";
  21. }
  22. cout << endl;
  23. }
  24. cout << "минор равен" << endl;
  25. cout << a[1][1] << " " << a[1][0] << " " << endl << a[0][1] << " " << a[0][0];
  26. return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement