public static int LCM(IList<int> numbers) { LCMProgram p = new LCMProgram(); //Check If < 2 numbers are passed if (numbers.Count < 2) throw new ArgumentException("Invalid Arguments"); return p.LCM(numbers, 0); }
public static int LCM(IList <int> numbers) { LCMProgram p = new LCMProgram(); //Check If < 2 numbers are passed if (numbers.Count < 2) { throw new ArgumentException("Invalid Arguments"); } return(p.LCM(numbers, 0)); }