Commit e295db2886362be9c3b5fbb5b287dedacf639d7e
1 parent
e5204bb491
Exists in
master
ba9f41c2-4d26-40bf-a9f0-d598b777ee0e
Showing 1 changed file with 21 additions and 1 deletions
README.md
View file @
e295db2
... | ... | @@ -64,10 +64,28 @@ |
64 | 64 | Exemple |
65 | 65 | --- |
66 | 66 | |
67 | -````sh | |
67 | +```sh | |
68 | 68 | ./anagramme.sh -f liste.de.mots.francais.frgut.txt.utf-8 -l 11 -c programmation |
69 | 69 | Liste des mots de 11 lettre(s) et contenant les lettres "programmation" : |
70 | 70 | 1 - programmait |
71 | 71 | 2 - programmant |
72 | 72 | ``` |
73 | + | |
74 | +pgcd.sh | |
75 | +=== | |
76 | + | |
77 | +CE script permet de calculer le pgcd et le ppcm des nombres passés en paramètre. | |
78 | + | |
79 | +Exemple | |
80 | +--- | |
81 | + | |
82 | +```sh | |
83 | +./pgcd.sh 45 55 | |
84 | + | |
85 | +PGCD (45,55) = 5 | |
86 | + | |
87 | +PPCM (45,55) = 495 | |
88 | +``` | |
89 | + *[pgcd]: Plus Grand Diviseur Commun | |
90 | + *[ppcm]: Plus Petit Multiple Commun |