Compare commits

...

13 Commits

Author SHA1 Message Date
MSilva95 af4cd45c3b
adding a condition 2 years ago
zainabdnaya 4b8e804ef9 corrected 2 years ago
zainabdnaya cbfc3cb65c corrected 2 years ago
zainabdnaya e85d79f272 corrected 2 years ago
MSilva95 5c86ee3a3a
small typo 2 years ago
zainabdnaya 9204aa02b0 correct 2 years ago
zainabdnaya 457109554b correct 2 years ago
zainabdnaya ea0895cdc6 concat2arg 2 years ago
zainabdnaya 9c80302020 corrected 2 years ago
zainabdnaya 1d38023a7a corrected 2 years ago
zainabdnaya 3b79283e08 feat: Add Subject concat 2 arguments 2 years ago
zainabdnaya 0747862ca0 feat: Add Subject concat 2 arguments 2 years ago
zainabdnaya d76739cbf1 feat: Add Subject 2 years ago
  1. 24
      subjects/concat2args/README.md

24
subjects/concat2args/README.md

@ -0,0 +1,24 @@
## concat2args
### Instructions
Write a program that concatenates two arguments and prints the result:
- If the number of arguments is not 2, return a newline.
- If only one of the arguments is empty, print the other.
- If the two arguments are empty return a newline.
### Usage
```console
$ go run . | cat -e
$
$ go run . "Hello" "World!" | cat -e
HelloWorld!$
$ go run . "01" "talent" | cat -e
01talent$
$ go run . " student " "talented" | cat -e
student talented$
$ go run . "Hello" "student" "talented" "!" | cat -e
$
```
Loading…
Cancel
Save