Bonsoir,
A = 0
B = 0
1er passage:
A = A + 1 = 0 + 1 = 1
B = B + A = 0 + 1 = 1
2ème passage:
A = A + 1 = 1 + 1 = 2
B = B + A = 1 + 2 = 3
3ème passage:
A = A + 1 = 2 + 1 = 3
B = B + A = 3 + 3 = 6
4ème passage:
A = A + 1 = 3 + 1 = 4
B = B + A = 6 + 4 = 10
A la fin, A = 4 et B = 10
Bonne soirée,
Thomas