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) alors { Si (b = 0) alors { Afficher("Resultat: Il y a une infinité de solution\n") } sinon { Afficher("Resultat: Aucune solution\n") } } sinon { x <-- -b / a Afficher("Resultat: x=",x,"\n") Afficher("Verification: ",a,"*",x,"+",b,"= 0\n") } }