Ruby - Control Flow
Which of the following is the correct syntax to use a range pattern in a Ruby
case statement?case statement?case with in syntaxcase variable; in pattern then action; end.when and in incorrectly. case x; in (1..5) puts 'Yes'; end misses then. case x; in 1-5 then puts 'Yes'; end uses invalid range syntax.in with then for pattern matching [OK]in pattern then inside case [OK]when and inthen15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions