|
|
@ -6,7 +6,7 @@ Write a program that takes two arguments and swaps them |
|
|
|
- Separate the arguments with (`' '`) |
|
|
|
- Separate the arguments with (`' '`) |
|
|
|
- Print (`'\n'`) at the end of the output. |
|
|
|
- Print (`'\n'`) at the end of the output. |
|
|
|
|
|
|
|
|
|
|
|
### Example |
|
|
|
### Usage |
|
|
|
|
|
|
|
|
|
|
|
```console |
|
|
|
```console |
|
|
|
$ go run . | cat -e |
|
|
|
$ go run . | cat -e |
|
|
@ -15,4 +15,4 @@ $ go run . 1 2 | cat -e |
|
|
|
2 1$ |
|
|
|
2 1$ |
|
|
|
$ go run . "World" "Hello" | cat -e |
|
|
|
$ go run . "World" "Hello" | cat -e |
|
|
|
Hello! World$ |
|
|
|
Hello! World$ |
|
|
|
``` |
|
|
|
``` |
|
|
|