RosettaCodeData/Task/Generic-swap/Icon/generic-swap.icon
2023-07-01 13:44:08 -04:00

8 lines
174 B
Text

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