diff --git a/subjects/nruneprog.en.md b/subjects/nruneprog.en.md index e6aaceba..46053782 100644 --- a/subjects/nruneprog.en.md +++ b/subjects/nruneprog.en.md @@ -9,14 +9,14 @@ Write a function that returns the nth `rune` of a `string`. ```console student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 2 e -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 4 -l +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 4 | cat -e +l$ student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 5 o student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" -student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" f -"f" is not an integer value +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" f | cat -e +"f" is not an integer value$ student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 9 Invalid position: "9" in "hello" student@ubuntu:~/piscine-go/nruneprog$ -``` \ No newline at end of file +``` diff --git a/subjects/nruneprog.fr.md b/subjects/nruneprog.fr.md new file mode 100644 index 00000000..c664eb70 --- /dev/null +++ b/subjects/nruneprog.fr.md @@ -0,0 +1,22 @@ +## nruneprog + +### Instructions + +Écrire un programme qui reçoit une `string` en paramètre et qui retourne la énième `rune` de la `string`. + +### Utilisation : + +```console +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 2 +e +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 4 | cat -e +l$ +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 5 +o +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" f | cat -e +"f" is not an integer value$ +student@ubuntu:~/piscine-go/nruneprog$ ./nruneprog "hello" 9 +Invalid position: "9" in "hello" +student@ubuntu:~/piscine-go/nruneprog$ +```