c program to find lcm of n numbers