bonsoir, j'aurais besoin d'une aide.

Exercice 2 On considère le programme de calcul suivant:
◆ Choisir un nombre
◆ Ajouter -3
◆ Soustraire 5

1) Quel résultat obtient-on si on choisit 7 au départ ?

2) Quel résultat obtient-on si on choisit 2 au départ ?

3) Quel résultat obtient-on si on choisit (-5) au départ ? ​

Sagot :

7

7 - 3 - 5 = -1

2 - 3 - 5 = -6

-5 -3 -5 = -13

Explications étape par étape :

1) 7 -> +(-3) ->5 -> -(-5) -> 10

2) 2 -> +(-3)->-1 ->-(-5) ->4

3) (-5) -> +(-3)->-8 ->-(-5) ->-3