using System.Diagnostics;
public static int[] InputArray(int size)
int[] result = new int[size];
for(int i = 0 ; i<result.Length ; i++)
Console.WriteLine("Input a number");
result[i] = int.Parse(Console.ReadLine());
public static void PrintArray(int[] array)
for(int i=0; i<array.Length;i++)
Console.Write("{0}",array[i]);
public static void Main()
int[] myArray=InputArray(5);
Stopwatch stw = new Stopwatch();
Console.WriteLine(stw.ElapsedMilliseconds);