Browse Source

adding of lastruneprogram modification and french version

content-update
Christopher Fremond 5 years ago committed by Christopher Fremond
parent
commit
274a135803
  1. 4
      subjects/lastruneprog.en.md
  2. 19
      subjects/lastruneprog.fr.md

4
subjects/lastruneprog.en.md

@ -10,8 +10,8 @@ Write a program that receives a `string` and returns the last `rune` of a `strin
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"
o
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

19
subjects/lastruneprog.fr.md

@ -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…
Cancel
Save