Sort three variables: Difference between revisions

Added 11l
(Undo revision 324762 by Drkameleon (talk))
(Added 11l)
Line 64:
Show the results of the sort here on this page using at least the values of those shown above.
<br><br>
 
=={{header|11l}}==
<lang 11l>V x = 77444
V y = -12
V z = 0
(x, y, z) = tuple_sorted((x, y, z))
print(x‘ ’y‘ ’z)
 
V xs = ‘lions, tigers, and’
V ys = ‘bears, oh my!’
V zs = ‘(from the "Wizard of OZ")’
(xs, ys, zs) = sorted([xs, ys, zs])
print(xs"\n"ys"\n"zs)</lang>
 
{{out}}
<pre>
-12 0 77444
(from the "Wizard of OZ")
bears, oh my!
lions, tigers, and
</pre>
 
=={{header|Ada}}==
1,480

edits