From cd830a8b8296811da75a7d1a48ddaa8beafe838e Mon Sep 17 00:00:00 2001 From: Mohamed Zaboub <45185441+mohamedLazyBob@users.noreply.github.com> Date: Tue, 14 Jun 2022 00:06:38 +0100 Subject: [PATCH] add(replaceeven): subject --- subjects/replaceeven/README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 subjects/replaceeven/README.md diff --git a/subjects/replaceeven/README.md b/subjects/replaceeven/README.md new file mode 100644 index 00000000..8471bc57 --- /dev/null +++ b/subjects/replaceeven/README.md @@ -0,0 +1,21 @@ +## replaceeven + +### Instructions + +Write a program that takes every character with an even index, of each argument and replace it with the number 2. + +- you program should always print `\n` at the end. +- you program should print all the arguments in one line, separated by the space character `' '`. +- zero is an even number. + + +### Usage + +```sh +$ go run . | cat -e +$ +$ go run . hello 444444444444444 | cat -e +2e2l2 242424242424242$ +$ go run main.go "Zone 01 is the best" | cat -e +2o2e202 2s2t2e2b2s2$ +``` \ No newline at end of file