Ruby - Control Flow
What will this Ruby code output?
num = 10 if num > 5 then puts 'Greater' else puts 'Smaller' end
num = 10 if num > 5 then puts 'Greater' else puts 'Smaller' end
puts 'Greater'.if true branch output = A [OK]if runs true branch, else runs otherwise [OK]then causes error15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions