<!-- column_layout: [1,1] -->
<!-- column: 0 -->
rust +exec
fn print_odds(upper_bound: i32) -> i32 {
for x in 1..upper_bound {
if x % 2 == 1 {
println!("{} is odd!", x);
} else {
println!("{} is even!", x);
}
}
return 20;
}
# fn main() {
let x = "rust";
println!("hello {}", x);
println!("ans {}", print_odds(5));
# }
<!-- column: 1 -->
<!-- place_output -->