diff --git a/algebre-non-lineaire/euclide.py b/algebre-non-lineaire/euclide.py index 0848be6..386b257 100755 --- a/algebre-non-lineaire/euclide.py +++ b/algebre-non-lineaire/euclide.py @@ -16,6 +16,10 @@ def main(): a = int(input("a : ")) b = int(input("b : ")) + calculate(a, b) + + +def calculate(a, b): if b > a: a, b = b, a diff --git a/algebre-non-lineaire/euclide_etendu.py b/algebre-non-lineaire/euclide_etendu.py index ed95390..39d4063 100755 --- a/algebre-non-lineaire/euclide_etendu.py +++ b/algebre-non-lineaire/euclide_etendu.py @@ -16,6 +16,10 @@ def main(): a = int(input("a : ")) b = int(input("b : ")) + calculate(a, b) + + +def calculate(a, b): if b > a: a, b = b, a