LCM using GCD Problem

LCM using GCD Problem — ExecCode Easy DSA Practice

Solve the LCM using GCD problem on ExecCode. Free online easy DSA practice in Numbers & Math Logic. Write and run code in Java, C++, Python — no signup required to run.

Problem description

Description You are given the input needed to solve LCM using GCD. Your task is to compute the required answer and return LCM. a b on one line.

Examples

Input {"a": 4, "b": 6}; Output 12. Input {"a": 12, "b": 18}; Output 36. Input {"a": 10, "b": 15}; Output 30

Constraints

1 <= a, b <= 10^9

Practice LCM using GCD free on ExecCode. Browse DSA problems, topic map, and placement guides.