// Print a message -- given as the first command line param // a number of times -- given as the second command line param // this is the final version // gtowell, Oct 2023 use std::env; // like java/go imports fn main() { // like Go, no args in main let args: Vec = env::args().collect(); // a slice / vector let val:u32 = args[2].trim().parse().unwrap(); // convert string to i32 // 3 different loops // first a "loop" let mut i=0; loop { println!("Loo {} {}", i, args[1]); i += 1; if i>val { break; } } // second a while loop let mut wi = 0; while wi