forked from root/public
8 changed files with 90 additions and 4 deletions
@ -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$ |
||||||
|
``` |
@ -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