Driver code
public static void Main ( ) { int [ ] A = { 2 , 3 , 1 , 7 , 8 } ; int [ ] B = { 3 , 6 , 7 } ; int m = A . Length ; int n = B . Length ; Console . Write ( MaxDotProduct ( A , B , m , n ) ) ; } }