Skip to content
C

Least Common Multiple

Easyjavapythonccppjavascript

Given two positive integers, find their least common multiple (LCM) — the smallest positive integer divisible by both.

Input Format

A single line containing two integers A and B.

Output Format

Print the LCM of A and B.

Input (stdin)

Output

Run your code to see output here...