Ruby - Variables and Data Types
You want to calculate the average of two numbers in Ruby, where both are Integers. Which code correctly calculates the average as a Float?
a = 8 b = 5 average = ?
a = 8 b = 5 average = ?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions