diff --git a/subjects/lastruneprog.en.md b/subjects/lastruneprog.en.md index c687e6944..f9d7e2cde 100644 --- a/subjects/lastruneprog.en.md +++ b/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 diff --git a/subjects/lastruneprog.fr.md b/subjects/lastruneprog.fr.md new file mode 100644 index 000000000..e37225270 --- /dev/null +++ b/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$ +```