Skip to content

Instantly share code, notes, and snippets.

@Manume
Last active August 29, 2015 14:01
Show Gist options
  • Save Manume/37ffc08fbaafe2e09754 to your computer and use it in GitHub Desktop.
Save Manume/37ffc08fbaafe2e09754 to your computer and use it in GitHub Desktop.
addition of two number using ruby
puts"enter the first value"
a=gets.to_i
puts"enter the second value"
b=gets.to_i
c=a+b
puts"The output is :#{c}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment