Problem Statement
Write a function int lcm(int a, int b) that returns the Least Common Multiple of two positive integers.
DEMO-C-32 โข Programming in C
Write a function int lcm(int a, int b) that returns the Least Common Multiple of two positive integers.
Two positive integers.
The LCM value.
Submit runs every public testcase in this browser. Results and code never leave this device.
4 6
12
3 5
15
1 5
5
C, C++, Java, and Python run locally in a browser VM. No worker or visualizer is used.
/workspace/question