using System.Collections.Generic;
using System.Threading.Tasks;
static void Main(string[] args)
int[] arrayA = { 1, 2, 3, 4, 5 };
IncrementArrayValues(arrayA);
for(int x = 0; x<arrayA.Length;x++)
Console.Write(arrayA[x] + " ");
static void IncrementArrayValues(int[] array1)
Console.WriteLine("Enter a # to increment the array");
string x = Console.ReadLine();
bool valid = Int32.TryParse(x, out int inc);
for (int i = 0; i < array1.Length; i++)