Sign in Join
Wiki copytemporary

Basic Pascal Tutorial/Chapter 2/Programming Assignment/fr

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

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.

Revision 4, last changed by WikiArchive .

Talk about this page

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