Informatique

Question

salut j ai besoin d aidee
Écrire le programme de Small Basic qui permet de saisir deux nombres puis afficher leur somme,leurproduit, leur quotient et leur soustractions
merci bcp bcp du cœur ❤ ​

1 Réponse

  • Bonjour,

    TextWindow.WriteLine("a = ?")

    a = TextWindow.Read()

    TextWindow.WriteLine("b = ?")

    b = TextWindow.Read()

    somme = a + b

    produit = a * b

    quotient = a / b

    soustraction = a - b

    TextWindow.WriteLine(a + " + " + b + " = " + somme)

    TextWindow.WriteLine(a + " x " + b + " = " + produit)

    TextWindow.WriteLine(a + " / " + b + " = " + quotient)

    TextWindow.WriteLine(a + " - " + b + " = " + soustraction)

    Bonne journée.

Autres questions