1. Computer Science Engineering (CSE)
  2. Design and Analysis of Algorithms
  3. What is the lcm (a, b)?
Q.

What is the lcm (a, b)?

A. a + b
B. gcd (a-b, b) if a>b
C. lcm (b, a)
D. a – b
Answer» C. lcm (b, a)
Explanation: since the lcm function is commutative, so lcm (a, b) = lcm (b, a).

Discussion