I want to write a simple A+B program in ruby, but I have no idea how to work with the console.
if you want to hold the arguments from Terminal, try the following code:
A = ARGV[0].to_i B = ARGV[1].to_i puts "#{A} + #{B} = #{A + B}"