Exerpad
🔥 0
0 XP
Exercise 7 · Chapter: StringsRequired+50 XP

First Initial

Get the first character of the string "Rustacean" and print it.

Expected output:

R

Hints:

  • Use .chars() to get an iterator of characters
  • Use .next() to grab the first character
  • .chars().next().unwrap() gives you the first character
rust
fn main() {
}
Output
Run your code to see the output here.