euclidean algorithm

Run Settings
LanguageGroovy
Language Version
Run Command
println euclideanAlgorithm(20, 40) def euclideanAlgorithm(a, b) { b == 0 ? a : euclideanAlgorithm(b, a % b) }
Editor Settings
Theme
Key bindings
Full width
Lines