✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Algorithme Exo_15
Variables
s, n, x, totalCalculs : Entier
Début
n ← 4
s ← 0
x ← 3
totalCalculs ← 0
TantQue (totalCalculs <20) Faire
s ← s + 2 ^ x
n ← s div 2
x ← n++
totalCalculs ← totalCalculs + n + x
FinTantQue
Ecrire(s, " : ", x, " : ", n, " : ", totalCalculs)
Fin
Cet algorithme affiche :