Driver program to test maxSubArraySum
public static void Main ( ) { int [ ] arr = { 2 , 3 , 4 , 5 , 7 } ; int n = arr . Length ; int max_sum = maxSubArraySum ( arr , 0 , n - 1 ) ; Console . Write ( " Maximum ▁ contiguous ▁ sum ▁ is ▁ " + max_sum ) ; } }