Exerpad
🔥0
0 XP
Lv.1 Beginner
Log In

String Length

Create a String with the value "Rustacean" and print its length.

Expected output:

text
9

Hints:

  • Use String::from("Rustacean") to create the string
  • Use .len() to get the length
  • Print the length with println!
rust
fn main() {
}