Ruby - Control Flow
What will be the output of this Ruby code?
score = 75 case score in 0..49 then puts "Fail" in 50..79 then puts "Pass" in 80..100 then puts "Excellent" else puts "Invalid" end
What will be the output of this Ruby code?
score = 75 case score in 0..49 then puts "Fail" in 50..79 then puts "Pass" in 80..100 then puts "Excellent" else puts "Invalid" end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions