void main()
{
int i, j, t
int a[20; ];
Printf("Ingrese 10 números separados por enter\n ");
for(I = 0;ilt10;i)
scanf( "d ", ampa[I]);
for(I = 0;iltn-1;i)
{
for( j = 0; j ltn-I-1; j )
if(a[j] gt; a[j 1])
{
t = a[j ];
a[j]= a[j 1];
a[j 1]= t;
}
}
Printf("Los números ordenados son los siguientes: \ n ");
for(I = 0; i lt10; i )
printf( "d ",a[I]);
}
Método de clasificación de burbujas.