Browse Source

commit of fix and fr version of strrevprog

pull/276/head
Christopher Fremond 5 years ago committed by Christopher Fremond
parent
commit
f8e6f1a614
  1. 6
      subjects/strrevprog.en.md
  2. 15
      subjects/strrevprog.fr.md

6
subjects/strrevprog.en.md

@ -2,14 +2,14 @@
### Instructions ### Instructions
- Write a program that reverses a `string` and writes it in standard output. - Write a program that reverses a `string` and prints it in the standard output.
### Expected output : ### Expected output :
```console ```console
student@ubuntu:~/piscine-go/strrevprog$ go build student@ubuntu:~/piscine-go/strrevprog$ go build
student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog "Hello World!" student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog "Hello World!" | cat -e
!dlroW olleH !dlroW olleH$
student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog
student@ubuntu:~/piscine-go/strrevprog$ student@ubuntu:~/piscine-go/strrevprog$
``` ```

15
subjects/strrevprog.fr.md

@ -0,0 +1,15 @@
## strrevprog
### Instructions
- Écrire un programme qui inverse une `string` et qui l'affiche dans la sortie standard.
### Utilisation :
```console
student@ubuntu:~/piscine-go/strrevprog$ go build
student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog "Hello World!" | cat -e
!dlroW olleH$
student@ubuntu:~/piscine-go/strrevprog$ ./strrevprog
student@ubuntu:~/piscine-go/strrevprog$
```
Loading…
Cancel
Save