def swap(a,b)
temp = a
a = b
b = temp
end

a = 10
b = 5
swap(a,b)
p a

why?