answersLogoWhite

0


Best Answer

You need at least two numbers. Example: 30 and 42. Factor them.

2 x 3 x 5 = 30

2 x 3 x 7 = 42

The LCM is the combination of factors, eliminating duplicates.

2 x 3 x 5 x 7 = 210, the LCM

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

You can't get the LCM of one number, it has to be at least two.

Example: 30 and 42.

Factor them.

2 x 3 x 5 = 30

2 x 3 x 7 = 42

Combine the factors, eliminating duplicates.

2 x 3 x 5 x 7 = 210, the LCM

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you find the lcm of a number?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Program in 'c' to find the LCM of any given five numbers?

Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.Just write a method or function that calculates the LCM for two numbers at a time. Then calculate the LCM for the first two numbers, get the LCM of the result with the third number, etc.


How do you calculate LCM of three numbers by pesudo code?

For this you will need a couple of helper algorithms. The first is the GCD (greatest common divisor) which is expressed as follows:procedure GCD (a, b) isinput: natural numbers a and bwhile ab doif a>blet a be a-belselet b be b-aend ifend whilereturn aThe second algorithm is the LCM (least common multiple) of two numbers:procedure LCM (a, b) isinput: natural numbers a and b return (a*b) / GCD (a, b)Now that you can calculate the GCD and LCM of any two natural numbers, you can calculate the LCM of any three natural numbers as follows:procedure LCM3 (a, b, c) isinput: natural numbers a, b and c return LCM (LCM (a, b), c)Note that the LCM of three numbers first calculates the LCM of two of those numbers (a and b) and then calculates the LCM of that result along with the third number (c). That is, if the three numbers were 8, 9 and 21, the LCM of 8 and 9 is 72 and the LCM of 72 and 21 is 504. Thus the LCM of 8, 9 and 21 is 504.


How do you write a C program to find the GCD and LCM of two numbers using a switch statement?

The following function will return the GCD or LCM of two arguments (x and y) depending on the value of the fct argument (GCD or LCM). enum FUNC {GCD, LCM}; int gcd_or_lcm(FUNC fct, int x, int y) { int result = 0; switch (fct) { case (GCD): result = gcd (x, y); break; case (LCM): result = lcm (x, y); break; } return result; }


Program to find the greatest number?

The greatest number is infinity.


How do you find most occurring digit in a number?

Count them unless the number has a recurring ending.

Related questions

What is the LCM of 3420?

Another number is needed to find LCM


What is the LCM of 1268?

The LCM of this number is itself. To find the LCM requires two or more numbers.


How do you find the LCM of 3 numbers through the common division method?

Find the LCM of the first two numbers and then find the LCM of that number and the third one. That answer will be the LCM of all three.


How do you find the LCM of 11?

You can't find the Lowest Common Multiple (LCM) of only one number. You need at least two numbers to find the LCM.


How do you get to the LCM of the number 38?

You need at least two numbers to find an LCM.


What is LCM of the number 5?

You need at least two numbers to find an LCM.


What is the LCM of the number three?

You need at least two numbers to find an LCM.


What is the LCM of number 777?

You need at least two numbers to find an LCM.


What is the LCM 3248?

To find the LCM requires 2 or more numbers. The LCM of a single number is itself.


What is the LCM of 61215?

The LCM of one number is itself. To find the LCM requires two or more numbers.


What is the LCM of 1012?

The LCM of one number is itself. To find LCM requires two or more numbers.


What is the LCM of 18210?

The LCM of one number is itself. To find the LCM requires two or more numbers.