RosettaCodeData/Task/Runtime-evaluation/Ruby/runtime-evaluation-1.rb

3 lines
47 B
Ruby

a, b = 5, -7
ans = eval "(a * b).abs" # => 35