Printing the array before sorting
for ( int i = 0 ; i < n ; i ++ ) { Console . WriteLine ( i + " : ▁ " + arr [ i ] ) ; } Console . WriteLine ( ) ; selectionSort ( arr , n ) ; Console . WriteLine ( " Sorted ▁ array ▁ is " ) ;