Browse Source

translations and check of exam1

content-update
Christopher Fremond 5 years ago committed by xpetit
parent
commit
94be296f28
  1. 14
      subjects/countdown.fr.md
  2. 18
      subjects/displaya.fr.md
  3. 6
      subjects/displayalpham.en.md
  4. 14
      subjects/displayalrevm.fr.md
  5. 18
      subjects/displayz.fr.md
  6. 14
      subjects/hello.fr.md
  7. 5
      subjects/onlya.fr.md
  8. 5
      subjects/onlyz.fr.md

14
subjects/countdown.fr.md

@ -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

@ -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$
```

6
subjects/displayalpham.en.md

@ -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

14
subjects/displayalrevm.fr.md

@ -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

@ -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

@ -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

@ -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

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