Exercice 2
1) L'équation est ((x+4)*x)+4
Pour x=-2, ((-2+4)*-2)+4 = (2*(-2))+4 = -4+4 = 0
2) Le programme affiche 49 pour x=5
3)a) Pour x=3, le programme affiche 25
5²=25
Pour x=8, le programme affiche 100
10²=100
3)b) Cela marche ainsi : quand nous choisissons x, l'équation calcule le carré d'un autre nombre entier. Ce nombre entier est obtenu quand nous faisons x+2.
4)Pour obtenir 1 :
(x+2)² = 1
x+2 = 1
x = -1