forked from root/public
Compare commits
3 Commits
master
...
1148-conca
Author | SHA1 | Date |
---|---|---|
zainabdnaya | 3b79283e08 | 2 years ago |
zainabdnaya | 0747862ca0 | 2 years ago |
zainabdnaya | d76739cbf1 | 2 years ago |
1 changed files with 20 additions and 0 deletions
@ -0,0 +1,20 @@ |
|||||||
|
## Concat2Argument |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Write a program that concatenates two arguments and prints the result: |
||||||
|
- If the number of arguments is not 2, print (`'\n'`). |
||||||
|
- don't concatenate the two arguments with space. |
||||||
|
|
||||||
|
### Usage |
||||||
|
|
||||||
|
```console |
||||||
|
$ go run . | cat -e |
||||||
|
$ |
||||||
|
$ go run . "Hello" "World!" | cat -e |
||||||
|
HelloWorld!$ |
||||||
|
$ go run . " student " talented | cat -e |
||||||
|
student talented$ |
||||||
|
$ go run . "Hello" "student" talented ! | cat -e |
||||||
|
$ |
||||||
|
``` |
Loading…
Reference in new issue