correction boucle for

This commit is contained in:
2024-03-19 08:38:15 +01:00
parent 10f3cb561f
commit d6104d046e

View File

@@ -138,9 +138,9 @@ tab = [9,8,5,4,7,6]
```python
procédure tri_selection(tableau t)
n longueur(t)
pour i de 0 à n - 2
pour i de 0 à n - 1
min i
pour j de i + 1 à n - 1
pour j de i + 1 à n
si t[j] < t[min], alors min j
fin pour
si min i, alors échanger t[i] et t[min]