Created
October 4, 2020 12:56
-
-
Save iosorin/46a18565f6d835d64c738ea226eb3af8 to your computer and use it in GitHub Desktop.
greatest common devision
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function gcd(a = 10, b = 20) { | |
| if (b === 0) return a; | |
| return gcd(b, a % b); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment