mirror of https://github.com/01-edu/public.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
535 B
535 B
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
$ 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
$