Driver code
public static void Main ( ) { int [ ] arr = { 10 , 20 , 30 , 40 , 30 } ; int size = arr . Length ; Console . WriteLine ( " Minimum ▁ number ▁ of ▁ multiplications ▁ is ▁ " + MatrixChainOrder ( arr , size ) ) ; } }