Math, asked by itsmadhavmittal, 9 months ago

problem sums on lcm!!! pls do not copy paste some random question i have a test in 30 min!

Answers

Answered by Nalindevu
1

Answer:

Find LCM of the following :

  • 20 and 40
  • 56and 65
  • 34 and 69

Hope this helps uuu....

plz mark as brainliest .....

Answered by mehek2440
0

Answer:

꧁༒Alex༒꧂

~♥~FOLLOW ME DEAR... ♥♡♥♡♥

<html>def final_lcm(thelist):

previous_thelist = thelist

prime_thelist = list(set(thelist) - set(returns_new_thelist(previous_thelist))

factors = 1

for i in prime_thelist:

factors = factors*i

new_thelist = returns_new_thelist(previous_thelist)

for i in range(1, 10000000000):

s_empty = []

for j in new_thelist:

if i % j == 0:

s_empty.append(True)

if len(new_thelist) == len(s_empty):

initial_lcm = i

break

final_lcm = factor*initial_lcm

return final_lcm

def returns_new_thelist(ll):

if 3 in ll:

ll.remove(3)

for i in ll:

if checks_if_prime(i) == True:

ll.remove(i)

return ll

def checks_if_prime(n):

if n == 2:

return True

import math

for i in range(math.ceil(0.5*n), 1, -1):

if n % i == 0:

return False

elif i == 2:

return True

print(final_lcm([1,2,3,4,5,6,7,8,9]))

Kindly pardon my poor choice of variables, I request you to see if the logic is correct and that the code is functional.

</html>

&lt;body bgcolor=yellow&gt;&lt;maruee&gt;&lt;fontcolor=blue&gt;

✔️MARK MY ANSWERS BRAINLIEST PLEASE..

HOPE IT HELPS DEAR..

Similar questions