Skip to content

Instantly share code, notes, and snippets.

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