Create an array, Set the Boolean flag variable to True, Create a loop to iterate through the items in the array, Comment to name the code, Set the left hand data item to be replaced by the right hand data item, Check that swaps have been made and iterate if they have, Re-initialise the Boolean variable in the loop, Set the right hand data item to the left hand data item, Set the temporary variable to store the left hand data item, Compare the two adjacent data items .

Ranking

Estilo visual

Opções

Alterar modelo

Restaurar arquivo salvo automaticamente: ?