Driver program
public static void Main ( ) { int [ ] arr = { 4 , 6 , 3 , 2 , 9 } ; int n = arr . Length ; heapSort ( arr , n ) ; Console . WriteLine ( " Sorted ▁ array ▁ is ▁ " ) ; printArray ( arr , n ) ; } }