Skip to content

Instantly share code, notes, and snippets.

@goofmint

goofmint/index.rs

Created Dec 8, 2017
Embed
What would you like to do?
#[no_mangle]
pub fn sum(a: i32) -> i32 {
let mut total = 0;
for x in 0..a {
total += x;
for y in 0..a {
total += y;
}
}
total
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment