Algorithme
Fermé
bila
-
29 nov. 2012 à 16:29
Heliotte Messages postés 1491 Date d'inscription vendredi 26 octobre 2012 Statut Membre Dernière intervention 28 janvier 2013 - 29 nov. 2012 à 17:47
Heliotte Messages postés 1491 Date d'inscription vendredi 26 octobre 2012 Statut Membre Dernière intervention 28 janvier 2013 - 29 nov. 2012 à 17:47
A voir également:
- Algorithme
- Logiciel algorithme gratuit - Télécharger - Édition & Programmation
- Code ascii algorithme - Guide
- Remplir une matrice algorithme - Forum Pascal
- Ecrire un algorithme qui permet de resoudre ax²+bx+c=0 - Forum Programmation
- Algorithme qui calcule le carré d'un nombre - Forum Algorithmes / Méthodes
1 réponse
Heliotte
Messages postés
1491
Date d'inscription
vendredi 26 octobre 2012
Statut
Membre
Dernière intervention
28 janvier 2013
92
29 nov. 2012 à 17:47
29 nov. 2012 à 17:47
Bonsoir bila,
Quelque chose comme cela :
Quelque chose comme cela :
Variables: Nombre, i, ENTIER; sEntier, sEntierOut, CHAINE; FONCTION MAIN() Entrée: Lire Nombre; sEntier=CHAINE(Nombre); AFFICHE("Le Nombre à l'envers est : " + RetourneChaine(sEntier)); FIN FONCTION FONCTION CHAINE RetourneChaine(CHAINE sEntier) SI(sEntier=="") ALORS RETOURNE = ""; FIN SI sEntierOut=""; POUR (i=(LONGUEUR(sEntier)-1) ; i<=0 ; i--) sEntierOut=sEntierOut + sEntier(i); FIN POUR RETOURNE sEntier; FIN FONCTION