Sorting algorithms/Bubble sort: Difference between revisions

Line 1,253:
REAL :: temp
INTEGER :: i, j
LOGICAL :: swapped = .TRUE.
DO j = SIZE(a)-1, 1, -1
Line 1,268:
END DO
END SUBROUTINE Bubble_Sort</lang>
 
=={{header|Go}}==
Per task pseudocode:
Anonymous user