Ruby - Control Flow
Identify the problem in this Ruby code:
score = 50 case score in 0..49 puts 'Fail' in 50..100 then puts 'Pass' end
score = 50 case score in 0..49 puts 'Fail' in 50..100 then puts 'Pass' end
in patternsin pattern lacks the then keyword after the range.in pattern should be followed by then before the action.then after first in pattern -> Option Din patterns need then [OK]then after in patterns [OK]thenwhen and in15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions