Question: Write MATLAB code given the following 1) Given two positive numbers, write a program using while loop to determine their lowest common multiple. You cannot
Write MATLAB code given the following
1) Given two positive numbers, write a program using while loop to determine their lowest common multiple. You cannot use any automatic LCM, GCD finder function or return command.
Program Inputs
Enter the first number: The user can enter any positive whole number, no error checking required
Enter the second number: The user can enter any positive whole number, no error checking required Program Outputs The LCM of X and Y is Z! Replace X with first number, Y with second number and Z with LCM.
Please include sample outputs of the program functioning in MATLAB
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
