diff --git a/Maths/gcd.py b/Maths/gcd.py new file mode 100644 index 000000000..0f0ba7dce --- /dev/null +++ b/Maths/gcd.py @@ -0,0 +1,12 @@ +def gcd(a, b): + if a == 0 : + return b + + return gcd(b%a, a) + +def main(): + print(gcd(3, 6)) + + +if __name__ == '__main__': + main()