myCompiler myCompiler
Deutsch English Español Français Italiano 日本語 한국어 Nederlands Polski Português
Recent
Login Sign up
Recent
Login Sign up
C

@carlosgoro

recursion - mcd

Python
6 years ago
def mcd(a, b): if (a == 0) or (b == 0): res = 0 elif (a==b): res = a elif (a>b): res = mcd(a-b, b) else: res = mcd(b-a, a)
Previous Next page

Supported languages

Deno JavaScript NodeJS Python Ruby Go C C++ Java C# TypeScript PHP Bash R Octave (MATLAB) Fortran Lua Erlang SQL MySQL MongoDB Clojure D Perl Kotlin Swift Rust Assembly
© 2026 mycompiler.io
Terms of service Privacy policy Contact us