#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int A[10]={10, 8,-3, 5, 7,6, 6, 8,-20, 5};
int min=abs(A[0]);
int i;
for (i=0;i<9;i++){
if (abs(A[i+1])<min){
min=abs(A[i+1]);
}
cout<<min;
return 0;
#include <iostream>
#include <cmath>
using namespace std;
int main()
{
int A[10]={10, 8,-3, 5, 7,6, 6, 8,-20, 5};
int min=abs(A[0]);
int i;
for (i=0;i<9;i++){
if (abs(A[i+1])<min){
min=abs(A[i+1]);
}
}
cout<<min;
return 0;
}