public/subjects/printevenarguments
MSilva95 404c163609 fix extra space in the flag 2022-07-14 10:30:22 +03:00
..
README.md fix extra space in the flag 2022-07-14 10:30:22 +03:00

README.md

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

$ go run . first second third | cat -e
second$
$ go run . a b c d | cat -e
b$
d$
$ go run . a | cat -e
$