Comment faire une calculatrice simple ?
x, y, op est un nombre
demande 'Premier nombre ?' dans x
demande 'Deuxième nombre ?' dans y
choisir ['+', '-', '×', '÷'] dans op
selon op
cas 1 : affiche x + y
cas 2 : affiche x - y
cas 3 : affiche x * y
cas 4 :
si y <> 0 alors
affiche x / y
sinon
affiche 'Division par zéro impossible'
fin si
fin selonAutre solution : affiche évaluer(calcul) avec un calcul saisi en texte.