Reading from arguments with ARGV

suggest change
number1 = ARGV[0]
number2 = ARGV[1]
puts number1.to_i + number2.to_i
## run with: $ ruby a_plus_b.rb 1 2

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


File I/O:
*Reading from arguments with ARGV

Table Of Contents