SyntaxFix
Write A Post
Hire A Developer
Questions
If you get your string from stdin().read_line, you have to trim it first.
stdin().read_line
let my_num: i32 = my_num.trim().parse() .expect("please give me correct string number!");