Updated the main methor

I have added an array of 10 integers. And a for loop to print all the numbers of the array.