- Partage ce devoir avec tes amis !
Sujet du devoir
Avec cet algorithme la je recherche combien fais x et je dois faire avec ce même algorithme l inverse il faut: écrire l'algorithme permettant, en partant du nombre affiché, de retrouver le nombre choisi initialement.VARIABLE
x EST_DU_TYPE NOMBRE
y EST_DU_TYPE NOMBRE
z EST_DU_TYPE NOMBRE
w EST_DU_TYPE NOMBRE
DEBUT ALGORITHME
Afficher "entrer la valeur de x"
LIRE x
AFFICHER x
y PREND_LA_VALEUR x+1
z PREND_LA_VALEUR 2*y
w PREND_LA_VALEUR z-3
AFFICHER "l'image de"
Afficher x
Afficher "est"
Afficher w
Où j'en suis dans mon devoir
donc j'ai fais sa comme changement:VARIABLE
x EST_DU_TYPE NOMBRE
y EST_DU_TYPE NOMBRE
z EST_DU_TYPE NOMBRE
w EST_DU_TYPE NOMBRE
DEBUT ALGORITHME
Afficher "entrer la valeur de w"
LIRE w
AFFICHER w
y PREND_LA_VALEUR x+1
z PREND_LA_VALEUR 2*y
w PREND_LA_VALEUR z-3
AFFICHER "l'image de"
Afficher w
Afficher "est"
Afficher x
Mais au niveau de je sais pas quel changements faire:
y PREND_LA_VALEUR x+1
z PREND_LA_VALEUR 2*y
w PREND_LA_VALEUR z-3
Et je ne suis pas sur que le reste des changement vont
1 commentaire pour ce devoir
D'accord mercide votre aide
Ils ont besoin d'aide !
- Aucun devoir trouvé, poste ton devoir maintenant.