153 p 170

AlgoBox
AlgoBox : sanstitre
Tester l'algorithme
Cliquer sur ce bouton pour exécuter l'algorithme : 

Résultats

Code de l'algorithme
1   VARIABLES
2     n EST_DU_TYPE NOMBRE
3     k EST_DU_TYPE NOMBRE
4     s EST_DU_TYPE NOMBRE
5   DEBUT_ALGORITHME
6     LIRE n
7     POUR k ALLANT_DE n A 5*n
8       DEBUT_POUR
9       s PREND_LA_VALEUR s+1/k
10      FIN_POUR
11    AFFICHER s
12  FIN_ALGORITHME

Ajouter un commentaire