mirror of https://github.com/01-edu/public.git
translations and check of exam1
This commit is contained in:
parent
1e1bd3a4dd
commit
94be296f28
|
@ -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$
|
||||
```
|
|
@ -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$
|
||||
```
|
|
@ -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
|
||||
|
|
|
@ -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$
|
||||
```
|
|
@ -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
|
||||
```
|
|
@ -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$
|
||||
```
|
|
@ -0,0 +1,5 @@
|
|||
## onlya
|
||||
|
||||
### Instructions
|
||||
|
||||
Écrire un programme qui affiche un caractère `a` sur la sortie standard. (et rien d'autre)
|
|
@ -0,0 +1,5 @@
|
|||
## onlya
|
||||
|
||||
### Instructions
|
||||
|
||||
Écrire un programme qui affiche un caractère `z` sur la sortie standard. (et rien d'autre)
|
Loading…
Reference in New Issue