mirror of https://github.com/01-edu/public.git
2 changed files with 21 additions and 2 deletions
@ -0,0 +1,19 @@ |
|||||||
|
## lastruneprog |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Écrire un programme qui reçoit une `string` en paramètre et qui retourne la dernière `rune` de la `string`. |
||||||
|
|
||||||
|
### Utilisation : |
||||||
|
|
||||||
|
```console |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ go build |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening" |
||||||
|
g |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello" | cat -e |
||||||
|
o$ |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this" "is" "not" "happening" |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog |
||||||
|
student@ubuntu:~/piscine-go/firstruneprog$ |
||||||
|
``` |
Loading…
Reference in new issue