Ruby - Control Flow
Identify the problem in this Ruby code:
if score > 50 puts "Pass" elsif score < 50 puts "Fail" else puts "Invalid" end
Assuming score is 50.
Identify the problem in this Ruby code:
if score > 50 puts "Pass" elsif score < 50 puts "Fail" else puts "Invalid" end
Assuming score is 50.
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions