Last active
August 29, 2015 14:01
-
-
Save Manume/37ffc08fbaafe2e09754 to your computer and use it in GitHub Desktop.
addition of two number using ruby
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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