Algorithme Resolution_eq_premier_degre { // Déclaration des variables variable a, b, x : réel // Début des instructions Afficher("Saisissez les coefficients a et b de l'equation du premier degre a*x+b=0: ") Saisir(a,b) // Détermination des cas dégénérés Si ((a = 0) ET (b = 0)) alors { Afficher("Resultat: Il y a une infinité de solution\n") } Si ((a = 0) ET (b != 0)) alors { Afficher("Resultat: Aucune solution\n") } Si((a != 0) ET (b != 0)) alors { x <-- -b / a Afficher("Resultat: x=",x,"\n") Afficher("Verification: ",a,"*",x,"+",b,"= 0\n") } }