Browse Source

update of strlen subjects en and fr

pull/292/head
Christopher Fremond 5 years ago committed by Christopher Fremond
parent
commit
1acd1e6253
  1. 2
      subjects/strlen.en.md
  2. 2
      subjects/strlen.fr.md
  3. 2
      subjects/strlenprog.en.md
  4. 19
      subjects/strlenprog.fr.md

2
subjects/strlen.en.md

@ -2,7 +2,7 @@
### Instructions
- Write a function that counts the characters of a string and that returns that count.
- Write a function that counts the characters of a `string` and that returns that count.
### Expected function

2
subjects/strlen.fr.md

@ -2,7 +2,7 @@
### Instructions
- Écrire une fonction qui compte le nombre de caractères d'une chaîne et qui retourne le nombre trouvé.
- Écrire une fonction qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé.
### Fonction attendue

2
subjects/strlenprog.en.md

@ -4,7 +4,7 @@
- Write a program that counts the characters of a `string` and that returns that value.
- If the program receives more than one `string` or no arguments must not return anything (see the `Expected output`).
- If the program receives more than one or no arguments it must not print anything.
### Expected output :

19
subjects/strlenprog.fr.md

@ -0,0 +1,19 @@
## strlenprog
### Instructions
- Écrire un programme qui compte le nombre de caractères d'une `string` et qui retourne le nombre trouvé.
- Si le programme reçoit plusieurs ou aucun arguments il ne doit rien afficher.
### Utilisation :
```console
student@ubuntu:~/piscine-go/strlenprog$ go build
student@ubuntu:~/piscine-go/strlenprog$ ./strlenprog "hello"
5
student@ubuntu:~/piscine-go/strlenprog$ ./strlenprog
student@ubuntu:~/piscine-go/strlenprog$
student@ubuntu:~/piscine-go/strlenprog$ ./strlenprog "hello" "how are you"
student@ubuntu:~/piscine-go/strlenprog$
```
Loading…
Cancel
Save