👤

Bonsoir pouvez vous m'aider svp

voici l'exercice : Écrivez un algorithme qui a pour but de lire deux nombres a et b, puis d'afficher le plus grand. Ne négligez pas le cas de l'égalité des deux nombres.
Merci d'avance ,


Répondre :

Bonsoir ;

Variables a , b : réels
Début
Lire a
Lire b
       a : = a - b
       Si a < 0 alors
                  Afficher b
       Sinon
                   Si a = 0 alors
                                  Afficher ("Egalité .")
                   Sinon
                                   Afficher a
                   Fin si
        Fin si
Fin .