If I make an array of intergers, how would I go about getting an average and storing it in a global variable? I'm making a grand strategy game, each country has a reputation with your organization. So I want to make an array of all the North American countries' relationship with you and display the average relationship you have with North America.