Algorithme Resolution_equation_premier_degre { variable a, b, x : réel Afficher("Cet algorithme calcule les solutions de l'équation a*x+b=0\n") Afficher("Entrez a:") Saisir(a) Afficher("Entrez b:") Saisir(b) Si (a = 0) alors { Si (b = 0) alors { Afficher("Resultat: infinite de solutions\n") } sinon { Afficher("Resultat: aucune solution\n") } } sinon { x <-- -b / a Afficher("Resultat: x =",x,"\n") Afficher("Verification: ",a,"*",x,"+",b,"=0\n") } }