public static void Main()
int[] input24 = { 3, 14, 5, 7, 19, 9, 6, 4, 17 };
int[] result5 = Reverse2(input24);
foreach(int j in result5)
public static int [] Reverse2(int[] input)
int end = input.Length - 1;
for(int i = start, j = end; i < j; i++, j--)
if (input[i] < 10 && input[j] < 10)
else if(input[i] <= 10 && input[j] >= 10)
else if(input[i] >= 10 && input[j] <= 10)