num1 = 36
      num2 = 60
      gcd = 1
      for i in range(1, min(num1, num2)):
          if num1 % i == 0 and num2 % i == 0:
              gcd = i
      print("GCD of", num1, "and", num2, "is", gcd)
      
      Python language logo

      GCD of Two Numbers

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.