forked from root/public
76 changed files with 342 additions and 347 deletions
@ -1,20 +0,0 @@ |
|||||||
## listpushpara |
|
||||||
|
|
||||||
### Instructions |
|
||||||
|
|
||||||
Write a program that creates a new linked list and includes each command-line argument in to the list. |
|
||||||
|
|
||||||
- The first argument should be at the end of the list |
|
||||||
|
|
||||||
And its output : |
|
||||||
|
|
||||||
```console |
|
||||||
student@ubuntu:~/piscine/test$ go build |
|
||||||
student@ubuntu:~/piscine/test$ ./listpushparams choumi is the best cat |
|
||||||
cat |
|
||||||
best |
|
||||||
the |
|
||||||
is |
|
||||||
choumi |
|
||||||
student@ubuntu:~/piscine/test$ |
|
||||||
``` |
|
@ -0,0 +1,36 @@ |
|||||||
|
## tabmult |
||||||
|
|
||||||
|
### Instructions |
||||||
|
|
||||||
|
Écrire un programme qui affiche la table de multiplication d'un nombre. |
||||||
|
|
||||||
|
- Le paramètre sera toujours un nombre strictement positif qui rentre dans un `int`. Ce paramètre multiplié par 9 rentrera aussi dans un `int`. |
||||||
|
|
||||||
|
### Utilisation |
||||||
|
|
||||||
|
```console |
||||||
|
student@ubuntu:~/piscine/test$ go build |
||||||
|
student@ubuntu:~/piscine/test$ ./test 9 |
||||||
|
1 x 9 = 9 |
||||||
|
2 x 9 = 18 |
||||||
|
3 x 9 = 27 |
||||||
|
4 x 9 = 36 |
||||||
|
5 x 9 = 45 |
||||||
|
6 x 9 = 54 |
||||||
|
7 x 9 = 63 |
||||||
|
8 x 9 = 72 |
||||||
|
9 x 9 = 81 |
||||||
|
student@ubuntu:~/piscine/test$ ./test 19 |
||||||
|
1 x 19 = 19 |
||||||
|
2 x 19 = 38 |
||||||
|
3 x 19 = 57 |
||||||
|
4 x 19 = 76 |
||||||
|
5 x 19 = 95 |
||||||
|
6 x 19 = 114 |
||||||
|
7 x 19 = 133 |
||||||
|
8 x 19 = 152 |
||||||
|
9 x 19 = 171 |
||||||
|
student@ubuntu:~/piscine/test$ |
||||||
|
|
||||||
|
student@ubuntu:~/piscine/ |
||||||
|
``` |
Loading…
Reference in new issue