

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
help me to find sulotion please
Typology: Exams
1 / 2
This page cannot be seen from the preview
Don't miss anything!


On special offer
Page 1 sur 2
Soit l’algorithme suivant : Algorithme exerciceDS Var X, T, S : réel I, N : entier Début Lire (N, X) S← 0 T← 1 I← 1 Tant que (I≤ N ) Faire T← T * X*X S← S+ T/ I I← I+ 1 Fin Faire Ecrire(S) FIN
Page 2 sur 2
Ecrire un algorithme qui permet de saisir un tableau Tab de réels de taille N saisie au clavier (N au maximum 100) et de remplacer toutes les occurrences d’un réel x saisi au clavier par le réel 0. Afficher à la fin le nombre d’occurrences remplacées de x.