Computer Science, asked by sarojgangwar94100, 11 days ago

Write an algorithm and draw a flowchart to find the LCM of numbers.​

Answers

Answered by krishkant20
0

Answer:

An algorithm is a step-by-step analysis of the process, while a flowchart explains the steps of a program in a graphical way. Algorithm and flowcharts helps to clarify all the steps for solving the problem.

Explanation:

The least common multiple (lcm) of a and b is their product divided by their greatest common divisor (gcd) ( i.e. lcm(a, b) = ab/gcd(a,b) ). So, the question becomes, how to find the gcd? The Euclidean algorithm is generally how the gcd is computed.

Similar questions