Question: MATLAB ONLY. Please leave comments on everything, Thanks LCM Write a function that takes as a parameter a list (array or vector in MATLAB/C++) of
MATLAB ONLY. Please leave comments on everything, Thanks
LCM Write a function that takes as a parameter a list (array or vector in MATLAB/C++) of 2 or more positive integers. Return the LCM of all elements in the list. For example, the LCM of 10 20 30 is 60. Functions Tester Write a function that tests the above functions by asking the user for input and displaying the output to screen. Your function should display the following menu: Find the prime factorization of a number Find the GCD of a series of numbers Find the LCM of a series of numbers Quit Your function should continuously display the menu until the quit option is selected. Have fun and ensure your functions are well commented
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
