Browse Source

corrected and created fr version of firstruneprg

pull/276/head
Christopher Fremond 5 years ago committed by Christopher Fremond
parent
commit
484cfbe644
  1. 4
      subjects/firstruneprog.en.md
  2. 19
      subjects/firstruneprog.fr.md

4
subjects/firstruneprog.en.md

@ -10,8 +10,8 @@ Write a program that receives a `string` and returns the first `rune` of that `s
student@ubuntu:~/piscine-go/firstruneprog$ go build
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening"
t
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello"
h
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello" | cat-e
h$
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this" "is" "not" "happening"
student@ubuntu:~/piscine-go/firstruneprog$
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog

19
subjects/firstruneprog.fr.md

@ -0,0 +1,19 @@
## firstruneprog
### Instructions
Écrire un programme qui reçoit une `string` et qui retourne la première `rune` de cette `string`.
### Utilisation :
```console
student@ubuntu:~/piscine-go/firstruneprog$ go build
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "this is not happening"
t
student@ubuntu:~/piscine-go/firstruneprog$ ./firstruneprog "hello" | cat-e
h$
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