Sort three variables: Difference between revisions

Frink
m (→‎{{header|Wren}}: Minor tidy)
(Frink)
Line 1,477:
Y = 9.0099999999999998E+000
Z = 1.2340000000000000E+001</pre>
 
=={{header|Frink}}==
The following sorts the values in the variables x, y, and z and sets the sorted values back to the variables.
 
<syntaxhighlight lang="frink">x = 77444
y = -12
z = 0
 
[x,y,z] = sort[[x,y,z]]</syntaxhighlight>
{{out}}
<pre>
[-12, 0, 77444]
</pre>
 
=={{header|Go}}==
490

edits