#include<iostream.h>
#include<conio.h>
int main()
{
int small, a[100], i, n, s, pos;
clrscr();
cout<<"How many elements in an array : ";
cin>>n;
cout<<endl<<"Enter the elements : "<<endl;
for(i=0; i<=n-1; i++)
{
cin>>a[i];
}
small = a[0];
pos = 0;
for(i=1; i<=n-1; i++)
{
if (small>a[i])
{
small = a[i];
pos = i;
}
}
cout<<endl<<"The smallest of the entered no. is : "<<small;
cout<<endl<<"The position of the smallest no. is : "<<pos+1;
getch();
return 0;
}