par SoS-Math(9) » sam. 17 sept. 2016 18:10
Lucas,
ton algorithme est incomplet ...
Il faut commencer par récupérer les valeurs a, b etc. Pour cela on écrit :
Lire a, b et c.
Ensuite il y a un problème avec tes "si". Tes racines ne sont pas placées avec tes conditions ..
Voici un algorithme à compléter :
Lire a, b et c
Delta=b^2-4ac
Si Delta>0 alors
-- afficher "il y a 2 racines"
-- x1=(-b-racine de Delta)/(2a)
-- ......................
-- afficher x1 et .....
sinon si Delta=0 alors
--------- afficher ................
--------- ............
--------- ............
------- sinon
------------ afficher ..............
------- Fin de si
Fin de si.
SoSMath.
Lucas,
ton algorithme est incomplet ...
Il faut commencer par récupérer les valeurs a, b etc. Pour cela on écrit :
Lire a, b et c.
Ensuite il y a un problème avec tes "si". Tes racines ne sont pas placées avec tes conditions ..
Voici un algorithme à compléter :
Lire a, b et c
Delta=b^2-4ac
Si Delta>0 alors
-- afficher "il y a 2 racines"
-- x1=(-b-racine de Delta)/(2a)
-- ......................
-- afficher x1 et .....
sinon si Delta=0 alors
--------- afficher ................
--------- ............
--------- ............
------- sinon
------------ afficher ..............
------- Fin de si
Fin de si.
SoSMath.