From b617565f0f517eddef5594451f5cbfe75238b63f Mon Sep 17 00:00:00 2001 From: MSilva95 Date: Tue, 22 Oct 2019 18:16:47 +0100 Subject: [PATCH] new readme rotatevowels for quest06 --- subjects/rotatevowels.en.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 subjects/rotatevowels.en.md diff --git a/subjects/rotatevowels.en.md b/subjects/rotatevowels.en.md new file mode 100644 index 000000000..757e225a1 --- /dev/null +++ b/subjects/rotatevowels.en.md @@ -0,0 +1,26 @@ +## rotatevowels + +### Instructions + +Write a **program** that checks the arguments for vowels. + +- If the argument contains vowels you have to reverse the order of the vowels in the argument. +- If the number of arguments are less than 1, the program display a new line, `\n`. +- If the arguments doesn't have any vowels, the program just print the arguments. + +Example of output : + +```console +student@ubuntu:~/piscine-go/test$ go build +student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" +Hollo Werld +student@ubuntu:~/piscine-go/test$ ./rotatevowels "Hello World" "problem solved" +Hello Werld problom solved +student@ubuntu:~/piscine-go/test$ ./rotatevowels "str" "shh" "psst" +str shh psst +student@ubuntu:~/piscine-go/test$ ./rotatevowels "happy thoughts" "good luck" +huppy thooghts guod lack +student@ubuntu:~/piscine-go/test$ ./rotatevowels + +student@ubuntu:~/piscine-go/test$ +```