Puzzle 2: Explanation

Let’s find out how Rust handles string operations while taking input from users.

Test it out

Hit “Run” to see the code’s output.

Get hands-on with 1200+ tech skills courses.