Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void main() {
- setlocale(LC_ALL, "RUS");
- int i, min = 32767;
- cout << "Количество элементов в массиве: ";
- cin >> i;
- int a[9];
- for (size_t n = 0; n < i; n++)
- {
- cin >> a[n];
- if (a[n] < min) {
- min = a[n];
- }
- }
- system("cls");
- cout << min << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement