Professional Documents
Culture Documents
I
I
I
tests
boucles
tableaux . . .
...
Remarque
...
tab
...
tab
Remarque
...
tab
tab
...
...
tab0,
...
tab0,
tab ,0
...
tab ,
i j
...
tab ,
...
tab
..
.
tab
..
.
1,0
..
.
..
.
...
..
.
tab
..
.
1,j
..
.
..
.
..
.
i n
..
.
1 ,n1
Remarque
...
tab
tab
...
...
tab0,
...
tab0,
tab ,0
...
tab ,
i j
...
tab ,
...
tab
..
.
tab
..
.
1,0
..
.
..
.
...
..
.
tab
..
.
1,j
..
.
..
.
..
.
i n
..
.
1 ,n1
Remarque
...
tab
tab
...
...
tab0,
...
tab0,
tab ,0
...
tab ,
i j
...
tab ,
...
tab
..
.
tab
..
.
1,0
..
.
..
.
...
..
.
tab
..
.
1,j
..
.
..
.
Exercices !
..
.
i n
..
.
1 ,n1
Trier un tableau
Tableau de taille 2 ou 3
Tableau de taille 2 ou 3
il sut de vrier si x y
I
Tableau de taille 2 ou 3
x1
...
x1
...
x1
...
x1
...
x1
...
min
min
x1
...
min
min
min
...
min
A vous de jouer !
A vous de jouer !
On pourra commencer par crire une fonction qui change les lments
d'indices i et j dans un tableau :
Fonction echange(tab : Tableau d'Entiers; i,j : Entiers)
Debut
...
Fin