RosettaCodeData/Task/Generic-swap/Icon/generic-swap.icon

9 lines
174 B
Text
Raw Permalink Normal View History

2013-04-10 21:29:02 -07:00
procedure main()
x := 1
y := 2
x :=: y
write(x," ",y)
# swap that will reverse if surrounding expression fails
if x <-> y & x < y then write(x, " ", y)
end