Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Imaginamos que existe un array llamada lista[10] con números desordenados
- for i in lista'range loop
- for j in i..lista'last-1
- if lista(j) > lista(j+1) then
- aux = lista(j);
- lista(j) = lista(j+1);
- lista(j+1) = aux;
- end if;
- end loop;
- end loop;
- --Básicamente, lo que hace es esto:
- --https://www.youtube.com/watch?v=EQMGabLO_M0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement