logo

Crowdly

Browser

Add to Chrome

Considérez les lignes d'instructions suivantes, et supposez que toutes les varia...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Considérez les lignes d'instructions suivantes, et supposez que toutes les variables ont été correctement déclarées. Quel est le rôle de la variable mystere ?

s <- "abcdef"

u <- "cde"

trouve <- Faux

mystere <- -1

i <- 1

Tant Que i <= longueur(s) - longueur(u) + 1 ET NON trouve Faire

j <- 1

Tant Que j <= longueur(u) ET s[i + j - 1] = u[j] Faire

j <- j + 1

Fin Tant Que

Si j > longueur(u) Alors

trouve <- Vrai

mystere <- i

Fin Si

i <- i + 1

Fin Tant Que

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

Want instant access to all verified answers on moodle.myefrei.fr?

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

Browser

Add to Chrome