MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / main

Function main

maths/extended_euclidean_algorithm.py:74–82  ·  view source on GitHub ↗

Call Extended Euclidean Algorithm.

()

Source from the content-addressed store, hash-verified

72
73
74def main():
75 """Call Extended Euclidean Algorithm."""
76 if len(sys.argv) < 3:
77 print("2 integer arguments required")
78 return 1
79 a = int(sys.argv[1])
80 b = int(sys.argv[2])
81 print(extended_euclidean_algorithm(a, b))
82 return 0
83
84
85if __name__ == "__main__":

Callers 1

Calls 1

Tested by

no test coverage detected