1
0
Fork 0
This commit is contained in:
arielherself 2024-01-02 16:42:07 +08:00
parent c091a8f50a
commit 80e2ff8805
1 changed files with 6 additions and 0 deletions

6
number/gcd.rs Normal file
View File

@ -0,0 +1,6 @@
let gcd = |mut x: i64, mut y: i64|{
while y != 0 {
(x, y) = (y, x % y);
}
x
};