 
  
well it should output the index of maximum number:P
#include <iostream>
using namespace std;
const n=10;
int main()
{
	int array[n],v=0;
	for(int t=0;t<=10;t++)
	{
		cout<<"type the"<<" "<<t<< " element of an array"<<endl;
		cin>>array[t];
	}
	for(int i=0;i<=10;i++)
	{
		for(int j=1;j<=10;j++)
		{
			if(array[i]>array[j])
			{
				v=array[i];
			}
		}
		
		
	}
	cout<< v <<endl;
	return 0;
}