Determine the lowest common multiple
Practice
5 (1 votes)
Basic programming
Easy
Approved
Math
Recruit
Problem
74% Success 345 Attempts 20 Points 1s Time Limit 256MB Memory 1024 KB Max Code
You are given two numbers A and B. The lowest common multiple of two integers A and B is usually denoted by LCM(A, B). It is the smallest positive integer that is divisible by both A and B. Print the Lowest Common Multiple (LCM) of A and B.
Input
Input contains two space-separated integers A and B.
Output
Print the value of LCM(A,B).
Constraints
1<=A<=B<=100
Submissions
Please login to view your submissions
Similar Problems
Points:20
3 votes
Tags:
ImplementationRecruitHiringEasyGreedy algorithmSorting
Points:30
18 votes
Tags:
Dynamic ProgrammingEasyReadyRecruitTwo dimensionalapproved
Points:30
Editorial