6 lines
81 B
Ruby
6 lines
81 B
Ruby
|
|
x = 42
|
||
|
|
y = "string"
|
||
|
|
x, y = swap x, y
|
||
|
|
puts x # prints string
|
||
|
|
puts y # prints 42
|