#include <stdio.h>
#include <conio.h>
void main()
{
clrscr();
int n;
/*Le nombre d'elements*/
int t[20]; /*Tableau de 20 cases*/
int aux; /*Variable temporaire*/
int test; /* "0" si le tableau n'est pas trier, "1" sinon*/
int i; /*variable de parcour du tableau*/
int x; /*Variable compte le nombre d'execution du traitement*/
/*LECTURE DE LA TAILLE AVEC CONTROL DE SAISIE*/
do
{
printf("Saisir la taille du tableau entre 2 et 20: ");
scanf("%d",&n);
}while(n<2 || n>20);
/*REMPLISSAGE TU TABLEAU*/
for (i=0;i<n;i++)
{
printf("T[%d]= ",i);
scanf("%d",&t[i]);
}
printf("\n");
/*AFFICHAGE DU TABLEAU AVANT LE TRI*/
for (i=0;i<n;i++)
{
printf("%d ",t[i]);
}
/*TRI DU TABLEAU*/
c'est ici le problem 
test=0;
for (i=0;(i<n-1) && (!test);i++)
{
test=1;
while (t[i]>t[i+1])
{
aux=t[i];
t[i]=t[i+1];
t[i+1]=aux;
test=0;
}
}
printf("\n");
/*AFFICHAGE DU TABLEAU APRES LE TRI*/
for (i=0;i<n;i++)
{
printf("%d ",t[i]);
}
getch();
}