diff --git a/subjects/countdown.en.md b/subjects/countdown.en.md index 58154f76e..adf526884 100644 --- a/subjects/countdown.en.md +++ b/subjects/countdown.en.md @@ -3,11 +3,9 @@ ### Instructions Write a program that displays all digits in descending order, followed by a -newline. +newline(`'\n'`). -### Expected main and function for the program - -### Expected output +### Usage ```console student@ubuntu:~/piscine/test$ go build diff --git a/subjects/displaya.en.md b/subjects/displaya.en.md index 5695452f8..2e0e6f539 100644 --- a/subjects/displaya.en.md +++ b/subjects/displaya.en.md @@ -2,14 +2,12 @@ ### Instructions -Write a program that takes a string, and displays the first 'a' character it -encounters in it, followed by a newline. If there are no 'a' characters in the -string, the program just writes a newline. If the number of parameters is not -1, the program displays 'a' followed by a newline. +Write a program that takes a `string`, and displays the first `a` character it +encounters in it, followed by a newline(`'\n'`). If there are no `a` characters in the +string, the program just writes `a` followed by a newline(`'\n'`). If the number of parameters is not +1, the program displays an `a` followed by a newline(`'\n'`). -### Expected main and function for the program - -### Expected output +### Usage ```console student@ubuntu:~/piscine/test$ go build @@ -18,5 +16,6 @@ a student@ubuntu:~/piscine/test$ ./test "bcvbvA" a student@ubuntu:~/piscine/test$ ./test "nbv" +a student@ubuntu:~/piscine/test$ ``` diff --git a/subjects/displayalpham.fr.md b/subjects/displayalpham.fr.md new file mode 100644 index 000000000..7fe3dab0a --- /dev/null +++ b/subjects/displayalpham.fr.md @@ -0,0 +1,14 @@ +## displayalpham + +### Instructions + +Écrire un programme qui affiche l'alphabet, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un newline(`'\n'`). + +### Utilisation + +```console +student@ubuntu:~/student/displayalpham$ go build +student@ubuntu:~/student/displayalpham$ ./displayalpham | cat -e +aBcDeFgHiJkLmNoPqRsTuVwXyZ$ +student@ubuntu:~/student/displayalpham$ +``` diff --git a/subjects/displayalrevm.en.md b/subjects/displayalrevm.en.md index f428f6496..f32715443 100644 --- a/subjects/displayalrevm.en.md +++ b/subjects/displayalrevm.en.md @@ -3,15 +3,13 @@ ### Instructions Write a program that displays the alphabet in reverse, with even letters in -uppercase, and odd letters in lowercase, followed by a newline. +uppercase, and odd letters in lowercase, followed by a newline(`'\n'`). -The function must have the next signature. - -Example : +### Usage ```console student@ubuntu:~/student/displayalrevm$ go build student@ubuntu:~/student/displayalrevm$ ./displayalrevm | cat -e -aBcDeFgHiJkLmNoPqRsTuVwXyZ$ +zYxWvUtSrQpOnMlKjIhGfEdCbA$ student@ubuntu:~/student/displayalrevm$ ``` diff --git a/subjects/displayz.en.md b/subjects/displayz.en.md index c884bd6b4..07cb8d9a9 100644 --- a/subjects/displayz.en.md +++ b/subjects/displayz.en.md @@ -2,21 +2,20 @@ ### Instructions -Write a program that takes a string, and displays the first 'a' character it -encounters in it, followed by a newline. If there are no 'a' characters in the -string, the program just writes a newline. If the number of parameters is not -1, the program displays 'a' followed by a newline. +Write a program that takes a `string`, and displays the first `z` character it +encounters in it, followed by a newline(`'\n'`). If there are no `z` characters in the +string, the program just writes `z` followed by a newline(`'\n'`). If the number of parameters is not +1, the program displays an `z` followed by a newline(`'\n'`). -### Expected output +### Usage ```console student@ubuntu:~/piscine/test$ go build -student@ubuntu:~/piscine/test$ ./test "abc" +student@ubuntu:~/piscine/test$ ./test "xyz" z student@ubuntu:~/piscine/test$ ./test "bcvbvZ" z -student@ubuntu:~/piscine/test$ ./test "nbz" +student@ubuntu:~/piscine/test$ ./test "nbv" z student@ubuntu:~/piscine/test$ ./test -z ``` diff --git a/subjects/hello.en.md b/subjects/hello.en.md index 6031385eb..c0380fbc9 100644 --- a/subjects/hello.en.md +++ b/subjects/hello.en.md @@ -2,11 +2,9 @@ ### Instructions -Write a program that displays "Hello World!". +Write a program that displays "Hello World!" followed by a newline(`'\n'`). -### Expected main and function for the program - -### Expected output +### Usage ```console student@ubuntu:~/piscine/test$ go build diff --git a/subjects/onlya.en.md b/subjects/onlya.en.md index 0c7ef8559..2f6005b78 100644 --- a/subjects/onlya.en.md +++ b/subjects/onlya.en.md @@ -2,4 +2,4 @@ ### Instructions -Write a program that displays a 'a' character on the standard output. +Write a program that displays a `a` character on the standard output. (and nothing else) diff --git a/subjects/onlyz.en.md b/subjects/onlyz.en.md index 23f0e34b8..030b61f4e 100644 --- a/subjects/onlyz.en.md +++ b/subjects/onlyz.en.md @@ -1,5 +1,5 @@ -## displayalpham +## onlyz ### Instructions -Write a program that displays a 'z' character on the standard output. +Write a program that displays a `z` character on the standard output. (and nothing else)