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. 6
      subjects/concatenate/README.md

6
subjects/concatenate/README.md

@ -2,7 +2,7 @@
### 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
@ -11,4 +11,8 @@ $ go run . hello there chris | cat -e
hellotherechris$
$ 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