text: To calculate lcm of two numbers multiply them and divide the result by gcd of both the numbers
code: for i in range ( n ) : NEW_LINE INDENT lcm = ( lcm * arr [ i ] ) // gcd ( lcm , arr [ i ] ) ; NEW_LINE DEDENT