Plus grand diviseur commun itératif
fn gcd(mut m: i32, mut n: i32) -> i32 {
while m != 0 {
let old_m = m;
m = n % m;
n = old_m;
}
n.abs()
}
fn main() {
println!("Greatest Common Divisor = {} ",gcd(115, 230));
}
Mackerel