Ruby - Variables and Data Types
You want to compute the average of two integers in Ruby and ensure the result is a float. Which code snippet correctly achieves this?
a = 10 b = 15 average = ?
a = 10 b = 15 average = ?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions