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.
Hamza elkhatri
6a53d215e6
|
2 years ago | |
---|---|---|
.. | ||
README.md | 2 years ago |
README.md
rev-arg
Instructions
Write a program that takes the command line arguments and prints them in reverse order.
- if the number of arguments is less than 1, print (
'\n'
)
Usage
$ go run . | cat -e
$
$ go run . "Hello World!" | cat -e
Hello World!$
$ go run . "Hello World!" "World!" "All" | cat -e
All World! Hello World!$
$ go run . 1 2 3 4 | cat -e
4 3 2 1$