Sort three variables: Difference between revisions
→{{header|Frink}}
(2 intermediate revisions by 2 users 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}}==
Line 3,602 ⟶ 3,620:
{{libheader|Wren-sort}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="
import "./fmt" for Fmt
var sort3 = Fn.new { |x, y, z|
|