Sagot :
Bonjour,
2
6 + 2 = 8
8 * - 2 = - 16
- 16 + 4 * 2 = - 16 + 8 = - 8
Programme 2
2
2 - 3 = - 1
- 1 * 4 = - 4
- 4 - 2 * 2 = - 4 - 4 = - 8
Pour x = – 3
Programme 1 :
-3
- 3 + 6 = 3
3 ×- 2 = - 6
- 6 + - 3 × 4 = - 6 - 12 = - 18
Programme 2 :
- 3
- 3 - 3 = - 6
- 6 * 4 = - 24
- 24 - 3 * 2 = - 24 + 6 = - 18
4
4 - 3 = 1
1 * 4 = 4
4 - 4 * 2 = 4 - 8 = - 4
On remarque que le programme 1 et le programme 2 donnent le même résultat
Programme 1 :
x
x + 6
(x + 6) * - 2 = - 2x - 12
- 2x - 12 + x * 4
- 2x - 12 + 4x = 2x - 12
A = 2x - 12
Programme 2 :
x
x - 3
(x - 3) * 4 = 4x - 12
4x - 12 - x * 2 = 4x - 12 - 2x = 2x - 12
B = 2x - 12