Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Algorithms/Sorting-bubble sort

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

in visual basic: sub sort_vector(vet() as string, n as integer) dim c as integer, i as integer dim mem as string for c = 1 to (n - 1) for i = c to (n - 1) if vet(i) > vet(i + 1) mem = vet(i + 1) vet(i + 1) = vet(c) vet(c) = mem end if next next end sub + c