DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
euclidean algorithm recursive python
def gcd(a, b): return b if (a == 0) else gcd(b%a, a) #contributed by rohit gupta
PREVIOUS
NEXT
Tagged:
#euclidean
#algorithm
#recursive
#python
ADD COMMENT
Topic
COMMENT
Name
3+6 =
Submit