✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
On considère l'algorithme suivant :
Programme parite_indices
Var
T : tableau[7] de Entier
i, S, P : Entier
Début
Pour i de 0 à 6 Faire
Afficher("Donnez un nombre ")
Saisir(T[i])
FinPour
S ← 0
P ← 1
Pour i de 0 à 6 Faire
Si( (i+1)%2 = 0 ) Alors
S ← S + T[i]
Sinon
P ← P * T[i]
FinSi
FinPour
Afficher(S, P)
Fin
Donner la sortie de cet algorithme pour T ← {3, 4, 3, 2, 0, 3, 2}