logo

Crowdly

Browser

Add to Chrome

Algorithme Exo_15 Variables      s, n, x, totalCalculs : Entier Début     n ←...

✅ 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 : 

0%
0%
0%
0%
0%
0%
More questions like this

Want instant access to all verified answers on moodle.e-polytechnique.ma?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome