← All problemsSign in

Find LCM

ram and yogesh had $M$ and $N$ rupees respectively. They have planned to go mahabaleshwar for a trip. So they wanted some extra money to spend on the trip. The parents of ram and yogesh decide to give some extra fixed amount of money. That amount is equal to LCM(Lowest Common Factor) of $M$ and $N$.You have to find that amount. - For Example: Values of $M$ and $N$ are 10 and 15 respectively. - Fac

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start