Besoin d'aide sur un Exo d'algorithme !!
Résolu/Fermé
Utilisateur anonyme
-
Modifié par fiddy le 18/10/2014 à 23:06
Utilisateur anonyme - 18 oct. 2014 à 23:38
Utilisateur anonyme - 18 oct. 2014 à 23:38
A voir également:
- Besoin d'aide sur un Exo d'algorithme !!
- Ppcm algorithme - Forum Programmation
- Ecrire un algorithme qui permet de resoudre ax²+bx+c=0 - Forum Algorithmes / Méthodes
- Pgcd algorithme - Forum Programmation
- Logiciel algorithme gratuit - Télécharger - Édition & Programmation
- Algorithme excel - Forum VB / VBA
2 réponses
ElementW
Messages postés
4764
Date d'inscription
dimanche 12 juin 2011
Statut
Contributeur
Dernière intervention
5 octobre 2021
1 295
18 oct. 2014 à 23:03
18 oct. 2014 à 23:03
'lut, rien de bien compliqué:
Variables
I: entier demandé a l'utilisateur
N, P, C: entiers
Traitement / Sortie
Pour P de I à 1
2*P-1 -> N
// Tu as bien constaté le nombre de fois où le chiffre s'affichait
Pour C de N à 1
Afficher P
// Donc on l'affiche N fois
FinPour
Afficher [retour a la ligne]
FinPour