Browse Source

Add usage examples and be more specific with the instructions as reviewed

DEV-3241-DEV-3242-corewar
estlop 2 years ago committed by Dav Hojt
parent
commit
cf26a508d3
  1. 8
      subjects/concatenate/README.md

8
subjects/concatenate/README.md

@ -2,13 +2,17 @@
### Instructions
Write a program that displays all the arguments as a single string. If there are not enough arguments it should display a new line.
Write a program that displays all the arguments as a single string by simple putting one after each other. If there are not enough arguments it should display a new line.
### Usage
```console
$ go run . hello there chris | cat -e
hellotherechris$
$ go run . a b c d| cat -e
$ go run . a b c d | cat -e
abcd$
$ go run . "hello there" "how are you?"
hello therehow are you?$
$ go run . "hello there" " " | cat -e
hello there $
```

Loading…
Cancel
Save