We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ab2795 commit d4edc29Copy full SHA for d4edc29
euclidean_gcd/javascript/euclidean_gcd.js
@@ -0,0 +1,8 @@
1
+function gcd(a, b) {
2
+ if (b == 0)
3
+ return a;
4
+ else
5
+ return gcd(b, (a % b));
6
+}
7
+
8
+console.log(gcd(gcd(203, 91), 77))
0 commit comments