Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <math.h>
- using namespace std;
- const int N = 5;
- const int P = 5;
- int main()
- {
- setlocale(LC_ALL, "Rus");
- int a[N][P],min;
- cout << "Введите элементы массива ." << endl;
- for (int i = 0; i < N; i++)
- {
- for (int j = 0; j < P; j++)
- {
- cin >> a[i][j] ;
- }
- cout << endl;
- }
- min = a[0][0];
- for(int i = 1; i<N; i++)
- {
- for (int j = 0; j < P; j++)
- if (min > a[i][j])
- {
- min = a[i][j];
- }
- }
- cout << "Min: " << min << endl;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement