/****************************************************************************** * This program demonstrates how to prompt the user for input. * * Copyright © 2020 Richard Lesh. All rights reserved. *****************************************************************************/ mod utils; fn main() { let mut name:&str = ""; name = &(Utils.prompt("What is your name? ")); let mut favoriteColor:&str = ""; favoriteColor = &(Utils.prompt("What is your favorite color? ")); println!("{}", format!("Hello, {0:s}! I like {1:s} too!", name, favoriteColor)); }