Please tell the solution of this problem in C language…

Write a C program that calculates the least common multiple (LCM) of ‘n’ numbers.

Input Format:

First line contains the number of numbers that are input ‘n’, where n>1

Second line contains ‘n’ positive integers whose LCM is to be calculated

Output Format:

One line containing the LCM of the ‘n’ numbers