// you can create a randge like this: start..stop // stop will be excluded //OR like this: start..=stop // stop will be included
fn main() { for x in (1..10).step_by(2) { println!("{}", x); } }