Function to print the arrays
static void print ( long [ ] a , long [ ] b ) { long minProd = 0 ; for ( int i = 0 ; i < a . Length ; ++ i ) { Console . Write ( a [ i ] + " ▁ " ) ; } Console . WriteLine ( ) ; for ( int i = 0 ; i < b . Length ; ++ i ) { Console . Write ( b [ i ] + " ▁ " ) ; minProd += a [ i ] * b [ i ] ; } Console . WriteLine ( ) ; Console . WriteLine ( minProd ) ; }