fn main() { for i in 0..5 { println!("i = {}", i); } for i in 1..=5 { print!("{} ", i); } println!(); }
Click Run to execute this code.