Ruby - Control Flow
Which of these is a valid pattern to match a number between 10 and 20 inclusive in a Ruby
case statement?case statement?.. for inclusive ranges, so 10..20 includes 20.10..20 correctly. when 10..20 then puts 'Matched' incorrectly uses when instead of in. in 10-20 then puts 'Matched' uses invalid syntax. in 10...20 then puts 'Matched' uses exclusive range 10...20 which excludes 20.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions