Gcd part 2 , lcm

in the function LCM , we make a call to function gcd but in the function gcd we do not have any operation to perform gcd(a,b) ? then how it will compute that? maybe im getting confused . please solve

@ritik_99 I think that you are confused. To compute LCM of any two numbers say a,b you can do that using GCD .The formula for it is LCM(a,b)= (a x b)/GCD. You can easily compute the GCD of two numbers using the recursive approach as taught in the course.So using the GCD function, you can get the LCM.
If you are still confused, please save the code which you are referring to ide.codingblocks.com and then share its link. I would verify.

Hope this helps :slightly_smiling_face:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.