Contact: aviboots(AT)netvision.net.il
39,037 questions
50,751 answers
573 users
fn count_words(input: &str) -> usize { input.split_whitespace().count() } fn main() { let str = "rust javascript php c c++"; let len = count_words(str); println!("{}", len); } /* run: 5 */