mirror of https://github.com/01-edu/public.git
4 changed files with 22 additions and 3 deletions
@ -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…
Reference in new issue