Basic Pascal Tutorial/Chapter 3/Programming Assignment/fr: what changed
Revision 2 to 3. Removed lines have a minus sign; added lines have a plus sign.
| Old | New | Line | |
|---|---|---|---|
| 1 | 1 | [[Basic Pascal Tutorial/fr|Tutoriel de Pascal Objet]] : Structures de contrôle / **Exercices** | |
| 2 | 2 | ||
| 3 | 3 | ### Suite de Fibonacci | |
| 4 | 4 | ||
| 5 | 5 | Trouver les 10 premiers nombres de la suite de Fibonacci. La suite de Fibonacci commence avec les deux nombres: | |
| 6 | 6 | ||
| 7 | - | ||
| 7 | + | ```text | |
| 8 | 8 | 1 1 | |
| 9 | 9 | ``` | |
| 10 | 10 | ||
| 11 | 11 | Chaque nombre suivant subséquent est formé en ajoutant les deux nombre qui le précède. 1+1=2, 1+2=3, 2+3=5, etc. Cela forme la séquence suivante : | |
| 12 | 12 | ||
| 13 | - | ||
| 13 | + | ```text | |
| 14 | 14 | 1 1 2 3 5 8 13 21 34 55 89 144 ... | |
| 15 | 15 | ``` | |
| 16 | 16 | ||
| 17 | 17 | ### Puissances de deux | |
| 18 | 18 | ||
| 19 | 19 | Afficher les puissances de 2 inférieures à 20 000. Afficher la liste selon une manière formatée appropriée, 5 nombres par ligne. La sortie pourrait ressembler à cela : | |
| 20 | 20 | ||
| 21 | - | ||
| 21 | + | ```text | |
| 22 | 22 | 1, 2, 4, 8, 16, | |
| 23 | 23 | 32, 64, 128, 256, 512, | |
| 24 | 24 | 1024, 2048, 4096, 8192, 16384 | |
| 25 | 25 | ``` | |
| 26 | 26 | ||
| 27 | 27 | --- | |
| 28 | 28 | *From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 3/Programming Assignment/fr", as it stood on 2022-08-20 after a change by Kai Burghardt, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).* |
