Algorithme Equation_Premier_Degre { variable a,b,x : réel Afficher("Cet algorithme résout l'équation du premier degré a*x+b=0.\n") Afficher("Entrez a: ") Saisir(a) Afficher("Entrez b: ") Saisir(b) Si (a = 0) alors { Si (b = 0) alors { Afficher("Résultat: infinité de solutions\n") } sinon { Afficher("Résultat: aucune solution\n") } } sinon { x <-- -b/a Afficher("Résultat: x=", x,"\n") Afficher("Vérification: ",a,"*",x,"+",b,"= 0\n") } }