kolyakibanov
Собсна на c++ #include <iostream> #include <conio.h> using namespace std; int main() { setlocale(LC_ALL, "Russian"); const int N = 5, M = 5; int a[N][M]; int min; cout << "Zapolnite matricu 5 na 5: " << endl; for (int i(0); i < N; i++) { for (int j(0); j < M; j++) { cin >> a[i][j]; } } min = a[0][0]; for (int i(0); i < N; i++) { for (int j(0); j < M; j++) { if (min > a[i][j]) min = a[i][j]; } } cout <<"Minimal`nii element: "<< min << endl; _getch(); return 0;}
Answers & Comments
#include <iostream>
#include <conio.h>
using namespace std;
int main()
{ setlocale(LC_ALL, "Russian");
const int N = 5, M = 5;
int a[N][M];
int min;
cout << "Zapolnite matricu 5 na 5: " << endl;
for (int i(0); i < N; i++)
{ for (int j(0); j < M; j++)
{ cin >> a[i][j]; } }
min = a[0][0];
for (int i(0); i < N; i++)
{ for (int j(0); j < M; j++)
{ if (min > a[i][j])
min = a[i][j]; } }
cout <<"Minimal`nii element: "<< min << endl;
_getch();
return 0;}