#include<iostream>
using namespace std;

int lowest(int[],int);

int main()
{
	
	const int SIZE= 8;
	int num[SIZE]={1,2,4,5,10,100,2,22};
	
	cout<<"The index of the lowest numbers is " ;
	cout<<lowest(num,SIZE);
	return 0;
}

int lowest(int n[],int size)
{
	int smallest;
	int j =0;
	smallest=n[0];
	for(int count=1;count<size;count++)
	{
		if (n[count]<smallest)
			smallest=n[count];
	}
	
	for(int count=0;count<size;count++)
	{
		if(n[count]!=smallest)
			j++;
			
		else break;
		
	}
	return j ;
}
