You are on page 1of 1

sanstitre - 17.12.

2023

******************************************

******************************************

1 FONCTIONS_UTILISEES
2 VARIABLES
3 n EST_DU_TYPE NOMBRE
4 lst EST_DU_TYPE LISTE
5 i EST_DU_TYPE NOMBRE
6 s EST_DU_TYPE NOMBRE
7 DEBUT_ALGORITHME
8 AFFICHER "combien de nombres avez vous a rentrer ? "
9 LIRE n
10 AFFICHER "vEUILLEZ RENTRER UNE LISTE"
11 POUR i ALLANT_DE 0 A n-1
12 DEBUT_POUR
13 LIRE lst[i]
14 FIN_POUR
15 POUR i ALLANT_DE 0 A (n/2)-1
16 DEBUT_POUR
17 s PREND_LA_VALEUR lst[i]
18 lst[i] PREND_LA_VALEUR lst[n-(i+1)]
19 lst[n-(i+1)] PREND_LA_VALEUR s
20 FIN_POUR
21 POUR i ALLANT_DE 0 A n-1
22 DEBUT_POUR
23 AFFICHER lst[i]
24 AFFICHER ","
25 FIN_POUR
26 FIN_ALGORITHME

You might also like