Driver code
static void Main ( ) { int [ ] arr = { 1 , 2 , 8 , 3 } ; Console . WriteLine ( LcmOfArray ( arr , 0 ) ) ; int [ ] arr1 = { 2 , 7 , 3 , 9 , 4 } ; Console . WriteLine ( LcmOfArray ( arr1 , 0 ) ) ; } }