public static void Main()
double[] rainfall = new double[12];
for (int i = 0; i < rainfall.Length; i++)
Console.WriteLine("Enter the rainfall for month " + (i + 1));
rainfall[i] = Convert.ToDouble(Console.ReadLine());
total = total + rainfall[i];
Console.WriteLine("The total rainfall in Footscray for the last 12 months is: " + total + "mm.");