Jump to content

Sort three variables: Difference between revisions

m
m (Formatting.)
Line 1,803:
77444</pre>
=={{header|Nim}}==
<lang nim>proc sortThree[T](a, b, c: var T) =
proc sortThree[T](a, b, c: var T) =
# Bubble sort, why not?
while not (a <= b and b <= c):
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.