fn ggt(c: int, d: int) -> int { let mut a = c; let mut b = d; if a==0 { ret b; } else { while b != 0 { if a > b { a = a-b; } else { b = b-a; } } } ret a; } fn main() { let ergebnis = ggt(16,6); io::println(#fmt("%d", ergebnis)); }