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.
16 lines
334 B
16 lines
334 B
2 years ago
|
## printevenarguments
|
||
|
|
||
|
### Instructions
|
||
|
|
||
|
Write a program that receives some arguments from the command line and prints the ones with an even index followed by a new line. If the number of even arguments is 0, print a new line.
|
||
|
|
||
|
### Usage
|
||
|
|
||
|
```console
|
||
|
$ go run . first second third | cat -e
|
||
|
second$
|
||
|
$ go run . a b c d| cat -e
|
||
|
b$
|
||
|
d$
|
||
|
```
|