eniallator

numSort

Jan 29th, 2016
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.13 KB | None | 0 0
  1. t={1,5,8,3}repeat s=1 for i=1,#t-1 do if t[i]>t[i+1]then t[i],t[i+1]=t[i+1],t[i]s=nil end end until s for k=1,#t do print(t[k])end
Advertisement
Add Comment
Please, Sign In to add comment