// small.cpp 
#include <iostream>
using namespace std;

int minimum(const int *a, int n) { // const is a promise that we will not change it
 int small = *a;
  for (int i=1; i<n; ++i) 
   if (*(a+i) < small) small = *(a+i);
 return small;
}

int main() {
 int table[10];
 cout << "Enter 10 integers: \n";
 for (int i=0; i<10; ++i)
  cin >> table[i];
 cout << "The minimum of these values is "
      <<  minimum(table, 10) << endl;
 return 0;
}
