From 274a135803e1fd0a247c669d840305ad4f4385af Mon Sep 17 00:00:00 2001 From: Christopher Fremond Date: Wed, 2 Oct 2019 04:55:55 +0100 Subject: [PATCH] adding of lastruneprogram modification and french version --- subjects/lastruneprog.en.md | 4 ++-- subjects/lastruneprog.fr.md | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+), 2 deletions(-) create mode 100644 subjects/lastruneprog.fr.md 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$ +```