Algorithme
Fermé
algo
-
8 oct. 2011 à 18:48
predact Messages postés 170 Date d'inscription mercredi 6 février 2008 Statut Membre Dernière intervention 15 mai 2015 - 8 oct. 2011 à 21:32
predact Messages postés 170 Date d'inscription mercredi 6 février 2008 Statut Membre Dernière intervention 15 mai 2015 - 8 oct. 2011 à 21:32
A voir également:
- Algorithme
- Ppcm algorithme - Forum Programmation
- Pgcd algorithme - Forum Programmation
- Ecrire un algorithme qui permet de resoudre ax²+bx+c=0 - Forum Algorithmes / Méthodes
- Logiciel algorithme gratuit - Télécharger - Édition & Programmation
- Algorithme excel - Forum VB / VBA
2 réponses
bjour
Messages postés
6062
Date d'inscription
lundi 11 janvier 2010
Statut
Contributeur
Dernière intervention
2 mai 2022
4 034
8 oct. 2011 à 18:49
8 oct. 2011 à 18:49
Bonjour,
créez un internaute qui dit "merci d'avance".
Crdlmnt,
créez un internaute qui dit "merci d'avance".
Crdlmnt,
predact
Messages postés
170
Date d'inscription
mercredi 6 février 2008
Statut
Membre
Dernière intervention
15 mai 2015
16
8 oct. 2011 à 21:32
8 oct. 2011 à 21:32
Bonjour,
Bjour n'a pas tort, alors pour ton algorithme(je suis pas sur, j'ai pas testé):
T_Diviseur (tableau d'entier associatif)
pour i de 1 à (TON_NOMBRE-1) faire
rep=TON_NOMBRE modulo i;
if rep=0
T_Diviseur[]=i;
fin pour
Bjour n'a pas tort, alors pour ton algorithme(je suis pas sur, j'ai pas testé):
T_Diviseur (tableau d'entier associatif)
pour i de 1 à (TON_NOMBRE-1) faire
rep=TON_NOMBRE modulo i;
if rep=0
T_Diviseur[]=i;
fin pour