Skip to content

Instantly share code, notes, and snippets.

@coderberry
Created August 23, 2012 02:10
Show Gist options
  • Select an option

  • Save coderberry/3431330 to your computer and use it in GitHub Desktop.

Select an option

Save coderberry/3431330 to your computer and use it in GitHub Desktop.
w2-e1.rb
>> x = 1 # Assigns the variable x with the value of 1
=> 1
>> y = 2 # Assigns the variable y with the value of 2
=> 2
>> z = x + y # Assigns the sum of x and y to the variable z
=> 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment