1.

Write python code .Compute the greatest common divisor and least common multiple of two integers.

Answer» a = int(input("Enter integer 1 : "))b = int(input("Enter integer 2 : "))for i in range(1,a+b):⠀⠀⠀if a%i==0 and b%i==0:⠀⠀⠀⠀⠀⠀⠀s=iprint("Greatest common integer = ",s)


Discussion

No Comment Found