using System;
public class Program
{
public static void Main()
int[] arr= {5,6,7,8,9,1,2,3,4};
for (int i=0; i<arr.Length;i++){
for( int j=arr.Length-1; j>=i; j--){
int temp= arr[j];
arr[j]=arr[i];
arr[i]=temp;
}
Console.WriteLine("the index number of "+ i + " is " +arr[i]);