Skip to content

Commit d4edc29

Browse files
committed
Euclidean_GCD using Javascript
1 parent 8ab2795 commit d4edc29

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)