RosettaCodeData/Task/Loops-For-with-a-specified-step/Rust/loops-for-with-a-specified-step-2.rust

9 lines
141 B
Text
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
fn main() {
let mut i = 2;
while i <= 8 {
print!("{}, ", i);
i += 2;
}
println!("who do we appreciate?!");
}