public/subjects/replaceeven
jrosendo 39c8bd1683 docs(replaceeven): ran prettier format 2022-12-05 12:22:12 +00:00
..
README.md docs(replaceeven): ran prettier format 2022-12-05 12:22:12 +00:00

README.md

replaceeven

Instructions

Write a program that takes every character with an even index of each argument and replaces it with the number 2.

  • Your program should always print a newline \n at the end.
  • Your program should print all the arguments in one line, separated by the space character ' '.
  • 0 is an even number.

Usage

$ go run . | cat -e
$
$ go run . hello 444444444444444 | cat -e
2e2l2 242424242424242$
$ go run . "Zone 01 is the best" | cat -e
2o2e202 2s2t2e2b2s2$