改行の巻その3

Just do it.ですね

num0= ARGV[0].to_i
num1= ARGV[1].to_i

print num0, "+", num1, "=", num0+num1,"\n"
print num0, "-", num1, "=", num0-num1,"\n"
print num0, "*", num1, "=", num0*num1,"\n"
print num0, "/", num1, "=", num0/num1,"\n"

I did it!

moomin:ProgrammingRuby tomomi$ ruby argv.rb 5 2
5+2=7
5-2=3
5*2=10
5/2=2