from lab5 import gerar_aleatorio, gerar_crescente, gerar_decrescente, selection_sort while True: n = int(input("n de elementos: ")) v1 = gerar_aleatorio(n) v2 = gerar_crescente(n) v3 = gerar_decrescente(n) c1 = selection_sort(v1) c2 = selection_sort(v2) c3 = selection_sort(v3) print(f"Aqui esta seus elementos: {c1} {c2} {c3}")
from lab5 import gerar_aleatorio, bubbleSort vetor = gerar_aleatorio(10) print('\n## Vetor gerado:', vetor) contagem = bubbleSort(vetor) print('\n## Vetor ordenado:', vetor) print('\n## Contador:', contagem)