Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2015 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save anonymous/cb758b338267c7bcfacb to your computer and use it in GitHub Desktop.
Save anonymous/cb758b338267c7bcfacb to your computer and use it in GitHub Desktop.
Shared via Rust Playground
fn main() {
let i_start: i8 = 50;
let i_end: i8 = 64;
for i in i_start..i_end {
let l = twice(i);
println!("{}", l);
}
}
fn twice(a: i8) -> i8 {
a + a
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment