Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 3/Programming Assignment/fr

English · Français · Български · 中文(中国) · 日本語

Tutoriel de Pascal Objet : Structures de contrôle / Exercices

Suite de Fibonacci

Trouver les 10 premiers nombres de la suite de Fibonacci. La suite de Fibonacci commence avec les deux nombres:

text
1 1

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 :

text
1 1 2 3 5 8 13 21 34 55 89 144 ...

Puissances de deux

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 :

text
    1, 2, 4, 8, 16,
32, 64, 128, 256, 512,
1024, 2048, 4096, 8192, 16384

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.

Revision 3, last changed by WikiArchive .

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.