[Algorithmique]
Fermé
butterfly66
Messages postés
30
Date d'inscription
dimanche 12 novembre 2006
Statut
Membre
Dernière intervention
15 mars 2009
-
10 juin 2007 à 22:27
butterfly66 Messages postés 30 Date d'inscription dimanche 12 novembre 2006 Statut Membre Dernière intervention 15 mars 2009 - 10 juin 2007 à 23:23
butterfly66 Messages postés 30 Date d'inscription dimanche 12 novembre 2006 Statut Membre Dernière intervention 15 mars 2009 - 10 juin 2007 à 23:23
A voir également:
- [Algorithmique]
- Test algorithmique entretien exemple ✓ - Forum Algorithmes / Méthodes
- Test algorithmique en ligne - Forum Programmation
- Schéma algorithmique - Forum Programmation
- Logiciel d'algorithmique - Télécharger - Édition & Programmation
- Comment résoudre un problème algorithmique - Forum Pascal
1 réponse
fiddy
Messages postés
11069
Date d'inscription
samedi 5 mai 2007
Statut
Contributeur
Dernière intervention
23 avril 2022
1 817
10 juin 2007 à 23:07
10 juin 2007 à 23:07
Salut
Voici un algorithme possible :
Voilou, je te laisse faire l'organigramme quand même lol
Demande moi si tu comprends pas le programme ou si tu as une remarque
Bonne chance
Voici un algorithme possible :
L = {} : liste
LPair = {} : liste
tmp : entier
somme = 0 : entier
S : entier
nbPair = 0: entier
prodPair =1: entier
plusGrandPair = -INFINITY: entier
Lire S
TantQue somme < S faire
Lire tmp
somme=tmp + somme
ajouter tmp dans L
finTantQue
Pour chaque element nb dans L faire
Si nb modulo 2 = 0 alors
Si nb > plusGrandPair alors plusGrandPair=nb
prodPair=prodPair*nb
nbPair=nbPair+1
ajouter nb dans LPair
FinSi
FinPour
Afficher LPair
Afficher prodPair
Afficher plusGrandPair
Afficher nbPair
Voilou, je te laisse faire l'organigramme quand même lol
Demande moi si tu comprends pas le programme ou si tu as une remarque
Bonne chance
10 juin 2007 à 23:23
ReMerci!!