This is a program i am trying to get working. It is supposed to read in values of cars and then input howmany sold for each model for each sales person. it works fine until it gets to ten then it goes 1232323 and will not stop can anyone help me or show me as to why this is happening?
Code:
#include <iostream>
using namespace std;

void main()
{
	int i,j;
	int iAuto[10];
	int iSales[9][11];
	int iTotSalesperPerson[11];
	int TotSales;

	// Reading prices for the Automobiles
	for(i=0;i<10;i++)
	{
	cout << "Automobile "<< i << " Price: ";
	cin >> iAuto[i];
	}
	// Reading Sales for Models & Sales Person
	for(i=1;i<=10;i++)
		for(j=1;j<=8; j++){

	cout << "Model "<< i << " - Sales Person " << j << ":";
	cin >> iSales[i][j];
	
	}
	// Sales Calculation for each person
	for(j=1;j<=8;j++)
		for(i=1;i<=10;i++){
	iTotSalesperPerson[j]+=iSales[i][j];
	cout << iTotSalesperPerson[j];
		}

	// Total Sales
		for(j=1;j<=8;j++){
	TotSales+=iTotSalesperPerson[j];
	cout << TotSales;
		}
}