Sort three variables: Difference between revisions

m (→‎{{header|Wren}}: Minor tidy)
 
(One intermediate revision by the same user not shown)
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]]
println["x = $x"]
println["y = $y"]
println["z = $z"]</syntaxhighlight>
{{out}}
<pre>
x = -12
y = 0
z = 77444
</pre>
 
=={{header|Go}}==
490

edits