You are viewing a single comment's thread. Return to all comments →
RUST:
fn viralAdvertising(n: i32) -> i32 { let mut cumulation: i32 = 0; let mut p: i32 = 5; for _ in 1..=n { cumulation += p/2; p = p/2 *3; } cumulation }
Seems like cookies are disabled on this browser, please enable them to open this website
Viral Advertising
You are viewing a single comment's thread. Return to all comments →
RUST: