#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL,"RU_ru");
int a[11] = { 65, -7, 0, 3, -43, 87, 65, -44, 34, 3, 12 };
int n = 99;
int c = 0;
for (int i = 1; i < 12; i++) {
if (a[i] < n) {
n = a[i];
c = i+1;
};
}
cout << "Минимальный элемент: a[" << c << "]= " << n << endl;
system("pause");
#include <iostream>
using namespace std;
int main()
{
setlocale(LC_ALL,"RU_ru");
int a[11] = { 65, -7, 0, 3, -43, 87, 65, -44, 34, 3, 12 };
int n = 99;
int c = 0;
for (int i = 1; i < 12; i++) {
if (a[i] < n) {
n = a[i];
c = i+1;
};
}
cout << "Минимальный элемент: a[" << c << "]= " << n << endl;
system("pause");
};