Python Program to find LCM of 2 numbers || programminginpython.com

preview_player
Показать описание
*********************
Use code FLAT25 for 25% OFF
Use code LUCKY30 and get 30% OFF
*********************

Python Program to find LCM of 2 numbers.

LCM means Least Common Multiple, for a given 2 numbers we need to find the least common multiple for them.

Let's take an example of 3 and 5, here I will find the LCM of those 2 numbers.

Multiples of 3: 3, 6, 9, 12, 15, 18, 21, 24...

Multiples of 5: 5, 10, 15, 20, 25, 30....

Now we find the first number which is found in both the multiples and it is clear that 15 is that number, and the LCM(3, 5) will be 15.

#python #Program #LCM #pythonProgramming

Рекомендации по теме
Комментарии
Автор


Use code FLAT25 for 25% OFF
Use code LUCKY30 and get 30% OFF

Programminginpython
Автор

i dont understant the code after line 10 pls explain.

yashas
Автор

what is the purpose of l in while loop please explain'

tscoding