I must do it in the following way:
If you find a blank box, you must move the elements to the beginning to occupy that space, the idea is that the available spaces are at the end of the arrangement.
This is what I have, since I do not understand how I can do the blank boxes and move them to the beginning, and look in videos and nothing.
Proceso ajustar_arreglo
Dimension arreglo_ajustado[10];
Definir i, arreglo_ajustado como entero;
Definir var_aux como entero;
i<-0;
para i<-0 hasta 9 Hacer
arreglo_ajustado[i]<-azar(20);
FinPara
para i<-0 hasta 7 Hacer
si arreglo_ajustado[i]>arreglo_ajustado[i+1] Entonces
var_aux<-arreglo_ajustado[i];
arreglo_ajustado[i]<-arreglo_ajustado[i+1];
arreglo_ajustado[i+1]<-var_aux;
FinSi
FinPara
Escribir '';
Escribir 'mostrar ordenado';
Para i<-0 hasta 9 hacer
Escribir arreglo_ajustado[i];
FinPara
FinProceso