public static void Main()
int [] golf_scores = new int [18];
for (int i = 0; i<golf_scores.Length; i++) {
Console.WriteLine("Enter the score: ");
golf_scores[i] = int.Parse(Console.ReadLine());
total = total + golf_scores[i];
Console.WriteLine("The score for this hole is: " + golf_scores[i]);
Console.WriteLine("\nThe total score is: " + total);
Console.WriteLine("\nthe average score for each score is " + total / golf_scores.Length);