Driver code
public static void main ( String [ ] args ) { int [ ] arr = { 1 , 2 , 8 , 3 } ; System . out . print ( LcmOfArray ( arr , 0 ) + "NEW_LINE"); int [ ] arr1 = { 2 , 7 , 3 , 9 , 4 } ; System . out . print ( LcmOfArray ( arr1 , 0 ) + "NEW_LINE"); } }