c program for lcm of n numbers