RosettaCodeData/Task/Generic-swap/Lua/generic-swap-2.lua
2023-07-01 13:44:08 -04:00

4 lines
117 B
Lua

x, y = 3, 4
print(x, y) --> 3 4
x, y = y, x -- swap
print(x, y) --> 4 3