translations and check of exam1

This commit is contained in:
Christopher Fremond 2019-06-05 18:30:24 +01:00 committed by xpetit
parent 1e1bd3a4dd
commit 94be296f28
8 changed files with 90 additions and 4 deletions

14
subjects/countdown.fr.md Normal file
View File

@ -0,0 +1,14 @@
## countdown
### Instructions
Écrire un programme qui affiche les chiffres dans l'ordre décroissant sur une seule ligne, suivi par un newline(`'\n'`).
### Utilisation
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
9876543210
student@ubuntu:~/piscine/test$
```

18
subjects/displaya.fr.md Normal file
View File

@ -0,0 +1,18 @@
## displaya
### Instructions
Écrire un programme qui prend une `string`, et qui affiche le premier caractère `a` qu'il trouve dedans, suivi par un newline(`'\n'`). Si il n'y a pas de caractère `a` dans la `string`, le programme affiche juste un `a` suivi d'un newline(`'\n'`). Si le nombre de paramètres n'est pas 1, le programme affiche un `a` suivi d'un newline(`'\n'`).
### Utilisation
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test "abc"
a
student@ubuntu:~/piscine/test$ ./test "bcvbvA"
a
student@ubuntu:~/piscine/test$ ./test "nbv"
a
student@ubuntu:~/piscine/test$
```

View File

@ -3,11 +3,9 @@
### Instructions
Write a program that displays the alphabet, with even letters in uppercase, and
odd letters in lowercase, followed by a newline.
odd letters in lowercase, followed by a newline(`'\n'`).
The function must have the next signature.
Example :
### Usage
```console
student@ubuntu:~/student/displayalpham$ go build

View File

@ -0,0 +1,14 @@
## displayalrevm
### Instructions
Écrire un programme qui affiche l'alphabet à l'envers, avec les lettres paires en majuscule, et les lettres impaires en minuscule, suivi d'un newline(`'\n'`).
### Utilisation
```console
student@ubuntu:~/student/displayalrevm$ go build
student@ubuntu:~/student/displayalrevm$ ./displayalrevm | cat -e
zYxWvUtSrQpOnMlKjIhGfEdCbA$
student@ubuntu:~/student/displayalrevm$
```

18
subjects/displayz.fr.md Normal file
View File

@ -0,0 +1,18 @@
## displayz
### Instructions
Écrire un programme qui prend une `string`, et qui affiche le premier caractère `z` qu'il trouve dedans, suivi par un newline(`'\n'`). Si il n'y a pas de caractère `z` dans la `string`, le programme affiche juste un `z` suivi d'un newline(`'\n'`). Si le nombre de paramètres n'est pas 1, le programme affiche un `z` suivi d'un newline(`'\n'`).
### Utilisation
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test "xyz"
z
student@ubuntu:~/piscine/test$ ./test "bcvbvZ"
z
student@ubuntu:~/piscine/test$ ./test "nbv"
z
student@ubuntu:~/piscine/test$ ./test
```

14
subjects/hello.fr.md Normal file
View File

@ -0,0 +1,14 @@
## hello
### Instructions
Écrire un programme qui affiche "Hello World!" suivi d'un newline(`'\n'`).
### Utilisation
```console
student@ubuntu:~/piscine/test$ go build
student@ubuntu:~/piscine/test$ ./test
Hello World!
student@ubuntu:~/piscine/test$
```

5
subjects/onlya.fr.md Normal file
View File

@ -0,0 +1,5 @@
## onlya
### Instructions
Écrire un programme qui affiche un caractère `a` sur la sortie standard. (et rien d'autre)

5
subjects/onlyz.fr.md Normal file
View File

@ -0,0 +1,5 @@
## onlya
### Instructions
Écrire un programme qui affiche un caractère `z` sur la sortie standard. (et rien d'autre)