Last active: 2 years ago
fn main() { println!("fibonaaci: {}", fibonaaci(8)) } fn fibonaaci(n: u128) -> u128 { let (mut a, mut b) = (0, 1); (1..n).for_each(|_x| (a, b) = (b, a + b)); a }