|
|
@ -2,9 +2,9 @@ |
|
|
|
|
|
|
|
|
|
|
|
### Instructions |
|
|
|
### Instructions |
|
|
|
|
|
|
|
|
|
|
|
Write a program that takes a `string` and displays its first word, followed by a newline (`'\n'`). |
|
|
|
Write a program that takes an argument and displays its first word, followed by a newline (`'\n'`). |
|
|
|
|
|
|
|
|
|
|
|
- A word is a section of `string` delimited by spaces or by the start/end of the `string`. |
|
|
|
- A word is a sequence of characters delimited by spaces or by the start/end of the argument. |
|
|
|
|
|
|
|
|
|
|
|
- The output will be followed by a newline (`'\n'`). |
|
|
|
- The output will be followed by a newline (`'\n'`). |
|
|
|
|
|
|
|
|
|
|
|