Day1 assignment done

Statements in Ruby need not be end by comma or semi colon(like C).
Also, try to copy this code in some file like swap.rb and from command prompt execute it as:
ruby swap.rb