import math
def find_lcm(num1, num2):
"""
Function to find the LCM of two numbers.
:param num1: First number
:param num2: Second number
:return: LCM of num1 and num2
"""
gcd = math.gcd(num1, num2)
lcm = (num1 * num2)
return lcm
num1 = int(input("Enter the first number: "))
num2 = int(input("Enter the second number: "))
result = find_lcm(num1, num2)
print(f"The LCM of {num1} and {num2} is: {result}")
#source code --> clcoding.com
0 Comments:
Post a Comment