- 3

How to User input in Rust?

How do I make user input in Rust?

18th Apr 2022, 11:30 PM
Yassin Elmarhomy
Yassin Elmarhomy - avatar
2 ответов
0
Seriously. Just Google it. This is not the kind of question you should be asking here.
20th Apr 2022, 12:58 AM
Mustafa A
Mustafa A - avatar
0
use std::io; println!("Enter your input: "); let mut input = String::new(); io::stdin().read_line(&mut input).expect("Readline error!"); println!("You have input {}, input);
12th Dec 2022, 2:28 PM
Calviղ
Calviղ - avatar