Sign in Join
Wiki copytemporary

Revision 4 of 4, by WikiArchive on 11-6-2026. The page as it is now.

Basic Pascal Tutorial/Chapter 2/Programming Assignment/fr

Tutoriel de Pascal Objet : Entrée/sortie / Exercice

Trouvez à nouveau la somme et la moyenne de cinq nombres, mais ce coup-ci, lisez les cinq nombres et afficher la sortie dans des colonnes nettes.

Reportez-vous à la spécification du problème de départ si nécessaire. Vous devriez saisir les nombres séparés par des virgules à partir du clavier : 45 7 68 2 34.

La sortie pourrait ressembler à ceci :

text
Nombre d'entiers = 5

Nombre1:      45
Nombre2:       7
Nombre3:      68
Nombre4:       2
Nombre5:      34
================
Somme:       156
Moyenne:      31.2

Comme complément à cet exercice, vous pouvez essayer d'écrire la sortie dans un fichier ; je n'utiliserai pas de fichier dans la solution du problème.


From the Free Pascal wiki, page "Basic Pascal Tutorial/Chapter 2/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.